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.cominstead ofsftp.site.comin your first example?Just because you specify the protocol sftp, doesn’t mean it will attempt to connect to
sftp.site.comwhen you providesite.comas the host. You still need the full hostname, thesftp://just tells it what protocol you want to speak once connected.