Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts

2014/09/01

rsync files or folder over ssh from one server to another


# rsync -avz -e "ssh -p portnumber" user@remoteip:/path/to/folder /local/path/folder

2014/06/25

Downloading remote file to local windows machine via pscp through different SSH port

The title says it all:

If you want to download a file from a remote server which needs to be accessed via SSH through a different port (other than standard pot 22), then you can use pscp.exe file that comes with Putty full bundle.

Example:
Go to the folder where pscp.exe is located, and open Windows command prompt. Then issue the appropriate command. Here's an example:

pscp - R 23 user@remote.server.ip:/home/file-location c:\Users\LocalFolder

Here, 23 is the SSH port on your remote server.