runs the specified ssh command on all chef nodes
creates an ec2 instance, bootstraps with chef
This will check if a user is logged in using ssh and will log out the user automatically after the specified time in seconds without data retrieval on the server side. Will work with bash and zsh so put it into your sourced shell file on the server side. Be aware that users can change this themselves as it's just a envoronment variable. Show Sample Output
Type the command. Then just use ssh command with tab to see all your ssh sessions. You can also put it in your profile. Thank you Nedzad !
you need ruby gems and localtunnel, further instruction on their website for ubuntu precise, just intall ... sudo apt-get install ruby ruby1.8-dev rubygems1.8 libopenssl-ruby sudo gem install localtunnel ssh-keygen -t rsa python -m SimpleHTTPServer 8000 sudo localtunnel -k ~/.ssh/id_rsa.pub 8000 Show Sample Output
Clones all repositories of given ${USERNAME}
if you use tmux and wish to automatically reattach you previously detached sessions when logging in.
mkdir local-mount-point
sshfs user@host:/path/to/remote/dir local-mount-point
diff -r /path/to/local/dir local-mount-point
fusermount -u local-mount-point # to unmount
Music streaming via ssh
from https://bitbucket.org
ssh port forwading
If the username on the remote host is the same as on the local machine you can omit the username.
chmod authorized_keys so you don't get "Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys"
chmod authorized_keys so you don't get "Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys"
Sometimes it is necessary to view debug messages to troubleshoot any SSH connection issues. pass -v (lowercase v) option to the ssh as shown below to view the ssh debug messages. Show Sample Output
More stealthy ffmpeg method. The imagemagick 'import' method causes a system beep.
Changes machine and cd to specific directory Add to .*shrc Usage : sshto
This is a multi-sourced hostname tab completion command you can put in your .bashrc (or your .bash_profile on a MAC). This will not only your .ssh/config, it will parse ALL of the following files for hostnames: .ssh/config .ssh/known_hosts .bash_history (I realize this could be prettied up by defining and calling the function, instead of implicitly referencing it, but this was more breif) Show Sample Output
Works for multiple hosts (such as www.google.com) and/or wrong hosts. Show Sample Output
If you have servers on Wide Area Network (WAN), you may experience very long transfer rates due to limited bandwidth and latency. To speed up you transfers you need to compress the data so you will have less to transfer. So the solution is to use a compression tools like gzip or bzip or compress before and after the data transfer. Using ssh "-C" option is not compatible with every ssh version (ssh2 for instance).
Play local mp3 file on remote machine's speakers through ssh
Just hold Ctrl-R and start typing a string (e.g. ssh). The shell will search for that string in the command history. Keep pressing Ctrl-R to cycle through all commands matching pattern. This works in other "sub-shells" too, like a python interactive session. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: