Thursday, 18 August 2016

PSCP.EXE(DAY 9)

PSCP.EXE:
we are going to use PSCP.EXE executable file to transfer from local machine to remote and vice versa
  • c\Users\praveen>cd c:\Program Files\putty
  • c:\Program Files\putty>PSCP.EXE
  •  pscp:no host name specified; use "open host.name" to connect
  • pscp> open 198.189.95.4(use IP address of a linux machine)
  • login as:username
  •  username@198.189.95.4's password:enter ur password
  • remote working directory is /username(connected to linux machine)
  • pscp>cd file
  • remote directory is now /username/file
  • pscp>pwd
  • remote directory is /username/file
  • pscp>ls 
  • listing directory /username/file
  • some files which are existing under file will display here(for example abc.txt)
  • pscp>get abc.txt
  • remote :/username/file/abc.txt =>local:abc.txt
  • pscp>put xyz.txt
  • local:xyz.txt => remote:/username/file/xyz.txt
another way to transfer from local to remote
  • c:\Program Files\putty>PSCP.EXE c:\mySource\*.html  username@198.189.95.4:/username/file/
  •  username@198.189.95.4's password:enter ur password
  • files are transfered
  • c:\program files\putty>
another way to transfer from remote to local
  • c:\Program Files\putty>PSCP.EXE   username@198.189.95.4:/username/file/*.txt c:\mySource\
  •  username@198.189.95.4's password:enter ur password
  • files are transfered
  • c:\program files\putty>
  •  

No comments:

Post a Comment

If you Like my blog Spread it and help friends for whom this blog is useful for their career.