How do I know if my script is using ftp or sftp?

Advertisement

treacheroust
Guest

How do I know if my script is using ftp or sftp?

My server supports both sftp and ftp, but the url for both is ftp.example.com. I'm trying to write a script, and it's unclear to me how to force the "open" command to use the sftp protocol. I've done a bunch of searching, and I can't find the answer. Thanks in advance for your help!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,637
Location:
Prague, Czechia

Re: How do I know if my script is using ftp or sftp?

ftp://ftp.example.com
sftp://ftp.example.com
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum