When using pscp to transfer files from windows to linux, use the command:
pscp source_file username@linux_ip:dst_dir
Sometimes an error will be reported: ssh_init: Network error: Cannot assign requested address
So, what is the problem? How to solve it?
1. Unable to catch the packet with wireshark
2. Carefully read the command parameters of pscp
Finally resolved, increase the -P parameter:
pscp.exe -P 22 dotfiles.tar.bz2 [email protected]:~
You can transfer the dotfiles.tar.bz2 file to the home directory of user_name of 192.168.0.1