Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

freeSSHD cannot be accessed by scp

Tags:

scp

I am running freeSSHD on Windows A, and need to transfer file with it by scp. The Windows running freesshd can be connected via ssh client. but neither WinSCP on Windows nor scp on Linux cannot connect to the Windows with freeSSHD. The errors are:

on Linux:

test@workstation:~$ scp -r /home/test/scptest [email protected]:/C:\Users\dejavu\Desktop
[email protected]'s password: 
exec request failed on channel 0
lost connection

on windows:

'scp' protocol is selected to transfer file and the port is default 22. The error is simply host is not communicating for more than 15 seconds. still waiting...

like image 834
Martian Puss Avatar asked Mar 25 '14 03:03

Martian Puss


1 Answers

scp, as many other things, is two-side protocol. It requires scp to be present on both client and server. When you issue copy command, ssh connects to given server and spawns scp process, which your local scp then communicates with. In your case, there is no scp on server, so no communication possible.

rsync behaves in exactly the same way.

I guess in your case you could try sftp.

like image 56
keltar Avatar answered Nov 24 '22 11:11

keltar