bloggerads

2015年12月22日 星期二

pscp (putty) : Transfer data between Windows / Linux

Step 1: Install putty, I use pscp command in putty in Windows side (client)


Step 2: Install openssh-server openssh-client in Linux side (server)

sudo apt-get install openssh-server openssh-client

Step 3: Demonstrate a example (The default path in Linux is Home)

# I am in windows (client), trying to copy file e:\MyFile.xxx from / to Linux(server)

My Linux configure --->  IP: 111.111.111.111, 
Admin_Name/Password: MartinLee/8888, 
file at Home/Documents/MyFile.xxx



# Copy file e:\MyFile.xxx to Linux 
echo y  |  pscp   -pw   8888   e:\MyFile.xxx   MartinLee@111.111.111.111:Documents/MyFile.xxx



# Copy file e:\MyFile.xxx from Linux 
echo y  |  pscp   -pw   8888   MartinLee@111.111.111.111:Documents/MyFile.xxx   e:\MyFile.xxx

# Result

沒有留言:

張貼留言