scp - Copying files from server to local computer using ssh -


i having trouble copying files remote server using ssh. using putty log in server using ssh. once find file copy on computer, use command:

scp username@host.com:/dir/of/file.txt \local\dir\

it looks successful, ends creating new folder labeled 'localdir' in remote directory /dir/of/. appreciated thank you.

it depends on local os is.

if local os unix-like, try:

scp username@remotehost:/remote/dir/file.txt /local/dir/ 

if local os windows ,then should use pscp.exe utility. example, below command download file.txt remote d: disk of local machine.

pscp.exe username@remotehost:/remote/dir/file.txt d:\ 

it seems local os unix, try former one.


for don't know pscp.exe , don't know is, can go putty official website download it. , open cmd prompt, go pscp.exe directory put it. execute command provided above


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -