dirtyw0lf
dirtyw0lf

Reputation: 1958

Username:Password vs sftp.site.com

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

open sftp://user:[email protected]

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:[email protected] I get a timeout.

Any ideas?

Upvotes: 1

Views: 161

Answers (1)

drew010
drew010

Reputation: 69967

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.

Upvotes: 1

Related Questions