Code Monkey home page Code Monkey logo

vsh's People

Contributors

azzid avatar pewo avatar trogdor-ops avatar ublom avatar yownas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

azzid trogdor-ops

vsh's Issues

White space after user name

If there is white space after the user name in vshd.ini in the [hosts] section, access to the host is denied.

Fix vcp

Rename vcp to vshtar and patch vsh to enable: scp -S vsh

Check $SSH_ORIGINAL_COMMAND for "dangeruous" characters

Use awk to check/clean command sent by the vsh-client, to make it harder for an attacker to execute unauthorized code

Example:
echo "" | awk '{d=ENVIRON["SSH_ORIGINAL_COMMAND"];if (match(d, "[^a-zA-Z0-9\\-_ .;:]")) print "usage"; else print d}'

Use hostname from hostlist in ct-list

When getting ct-list from hosts vsh saves the hostname reported by the vz-host instead of the name used to connect to it.

This can make things break if you have to connect to the hosts through another ip/name than the hostname set on the host.

(Should be simple to fix in the list-function, just replace the reported hostname with the one use to connect.)

Old hosts visible

vsh_updatestate should remove all old tmp-files before searching for clients. Otherwise old client-lists will be used for hosts that are removed from ~/.vsh/hosts

Add exit trap to clean up temporary keys/agents

The last step of vsh is to clean up temporary keys and/or ssh-agents.

If there is an error or the script use exit in any way this step is skipped.

Solution: Add a "trap vsh_cleanup EXIT" to fix this.

ctstate should be stored smarter

Tab/space separated is dumb, some functions like vsh_gethost() and vsh_getctname() might return faulty results if it happen to match other field.

vcp cannot handle files with spaces

vcp "file with spaces.txt" remotehost:
file: No such file or directory
with: No such file or directory
spaces.txt: No such file or directory

More logging

Log...
...container-name/hostname not just id.
...at exit

Non-root vshd

Enable vsh to use a vshd-host without root access for proxy-clients.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.