rapiduf.blogg.se

Scp on mac command line
Scp on mac command line




Now, the big gotcha here is the additional switches you've been told to use with pscp. This will download the file /var/tmp/file from homer and save it in your home directory. To download a file simply reverse the parameters: You'll be prompted for your password on homer, then the file will be uploaded. If you need to log into the server using a different username you can use the form assuming you want to upload the file /path/to/file to the /var/tmp/ directory on server 'homer', you would use: If remote then the format is hostname:/path/to/file where 'hostname' is the DNS hostname or IP address of the server.

scp on mac command line

If you're already in the directory you can just type the filename, otherwise you'll need to include the path to the file. If local this is simply the path to the file on your system. Where either source or destination is a local or a remote path. If 'source' is remote and 'destination' is local, then you're download something from the server to your machine, and if 'source' is local and 'destination' is remote you're uploading to the server. Either source or destination can be on a local or a remote system. In general scp requires two things - a source and a destination. That's not to say you can't use scp - you can, you just can't use the command in the way they're telling you to. The command and arguments you've been told to use will not work on anything other than a Windows machine with pscp installed. 'pscp' is actually a Windows client for implementing scp (because Windows doesn't ship with SSH installed by default).






Scp on mac command line