scp username@192.168.1.22:/directory/path . Get the file from the remote system
You can use this to compare two remote files as well. use below ignore white spaces. vimdiff -c 'set diffopt+=iwhite' local_dir1/local_file.xml scp://user@remote_host//remote_absolute_location/remote_file.xml
U have to make key exchange in order to avoid continuous password prompt. Show Sample Output
Upload file to remote server using SCP
Upload file to remote server using SCP
when ssh is running on a different port
(port 2202)
Simply copies your public key to the remote system. For the first time, this will require a password for the user@remote account. From then on, ssh will ask for your private key keyphrase occasionally but you won't need to use the password. Very handy when you're moving files for testing etc.
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: