I am trying to sftp from my linux machine to a Windows host but I get connection refused.
[root@linux-host ~]# sftp my.user@windows-host
ssh: connect to host windows-host port 22: Connection refused.
However, if I try vice versa i.e. connecting to the linux host from the Windows host using psftp it works just fine:
PS C:\Users\my.user> psftp my.user@linux-host
Using username "my.user".
psftp> get /tmp/somefile somefile
remote:/tmp/somefile => local:somefile
psftp work on different ports? And if windows host can send file using
pfstp doesn't that imply that it is also ready to receive through SFTP protocol?
My eventual aim is to be able to transfer files between Windows and linux host. Using SCP/PSCP isn't an options.