문제

I'm having issues with using the following format using WinSCP

open sftp://user:password@site.com

vs. this, which works with the console and GUI:

open sftp.site.com.

I would like to automate logging in through the command line but when I try with sftp://user:password@site.com I get a timeout.

Any ideas?

도움이 되었습니까?

해결책

It works fine for me both ways. Is the problem that you are using site.com instead of sftp.site.com in your first example?

Just because you specify the protocol sftp, doesn't mean it will attempt to connect to sftp.site.com when you provide site.com as the host. You still need the full hostname, the sftp:// just tells it what protocol you want to speak once connected.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top