By this command you can take the snapshot of you harddisk (full) and create the image , the image will be directly store on remote server through ssh. Here i am creating the image of /dev/hda and saving it at 4.2.2.2 as /root/server.img.
same as above, however without the chmod, you wont be able to SSH to the machine as the openssh server will require tigther permissions
This is just a default ssh-keygen command. Prompts for a password that you can use to secure the keys more and uses a higher bit value than the default along with naming the key something other than id_rsa for better file identification.
client:
nc localhost 9876
This will take the local machines date and set it on the remote machine. This really only works right if you have already swapped an ssh key. Show Sample Output
If you are on machine 1 and want to ssh into machine 3, but you can only do so from machine 2, this will do it all in one go. Note that once you are on machine 3 and exit () it will take you directly back to machine 1
One liner that basically duplicates ssh-copy-id functionality by taking care of most common issues of SSH password-less ssh logins: - missing key on the remote server - braindead permissions *cough* RHEL *cough* Show Sample Output
Change bitrate with option '-b'
opens the output of some command as a file so this also works with graphical editors like meld, kdiff3 etc
meld <(ssh $remote_site cat .zshrc) .zshrc
This will produce full configuration dump of the router's UCI.
Creates a full backup of router's /etc (and any other files or directories specified in /etc/sysupgrade.conf) that gets stored into the computer as a tarball named with full date and time (YYYY-MM-DD-HH:MM).
Replace servername with your user. And make sure you have generated / copied your rsa_pub key to the remote server, or you will be asked for a password which will stuff up the output to wireshark.
Generating ssh key then need to copy public key in to /root/.ssh/authorized_keys
Creates socket from your local computer to remote server using SSH, easy to penetrate firewall if SSH is allowed.
1. Sends an email to announce the start of the command 2. Raw data copy of block device over ssh to a new host 3. Sends an email to announce the end of the command Make sure the lvm device at the other side exists and has the same amount of logical units.
Commandline for windows + cygwin with specific interface and resolved ip.
This command is useful for sending mp3-sound by the quick way using SSH.
There's no need to make this complicated. The command already exist in the form of ssh-copy-id.
first line is the speed the uncompressed data is read, second line is the compressed data sent over ssh. change sdb to your target drive/partition to be backed up. change pbzip -c1 to suit your compression. and ssh to your target file. don't forget to run zerofree/fstrim first! Show Sample Output
Exactly what the summary says. This command will connect to another computer via SSH, and stream audio from your computer's microphone to the other computer's speakers. Use it like an intercom.
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: