How do I transfer files using SFTP in Sequoia?

Hi, I have just moved from High Sierra to Sequoia and am trying to use sftp from Terminal to transfer files to my website but I have been unable to make it work.


Please could anyone advise the format of the command necessary to login to the server?


Many thanks




[Re-Titled by Moderator]

Original Title: File transfer from terminal in Sequoia - can anyone help please?

MacBook Pro 15″, macOS 10.13

Posted on Jul 4, 2025 4:04 AM

Reply
14 replies

Jul 5, 2025 5:27 AM in response to KEP27

The typical syntax would be


sftp username@serveraddress


for example


sftp karen@mysite.com


and then you should be asked to type your password.


An easier alternative is to use a problem like Cyberduck that lets you use a GUI instead of typing commands in Terminal.


Anyway, it will only work if you have the proper username and password, and the correct server address.


EDIT: I just tried a connection like above in Terminal, it connects but then it says "connection closed". Cyberduck, however, works.


Jul 7, 2025 9:46 AM in response to KEP27

KEP27 wrote:

Hi, I have just moved from High Sierra to Sequoia and am trying to use sftp from Terminal to transfer files to my website but I have been unable to make it work.

Please could anyone advise the format of the command necessary to login to the server?

Many thanks



[Re-Titled by Moderator]
Original Title: File transfer from terminal in Sequoia - can anyone help please?


quite the leap....


I don't know if it will solve your immediate issue; I would definitely include Terminal In Full Disk Access if you have not already done so...and compare your results.




Jul 5, 2025 4:30 AM in response to Luis Sequeira1

Hi Luis,

Thanks for your reply. The server and my username have changed as the website has been moved. When I try to login now, terminal just hangs for a while and then I get 'Operation timed out' followed by 'Connection closed'. There was no option to input a password so I assume I am doing something wrong


I was just hoping someone could confirm the correct syntax. I am not quite clear from the manual command. I am more familiar using ftp but of course this is no longer supported.


Many thanks, Karen

Jul 5, 2025 6:22 AM in response to Luis Sequeira1

Hi Luis,


Thanks, that was exactly what I was doing.... :-(


Does that mean it doesn't actually work anymore...?


I am now actually able to transfer files via the host's control panel but I would much prefer to do it via terminal. (And now I would also like to know why it doesn't work).


Many thanks for your help, Karen



P.S. I don't know why there is ** above, I keep editing it but they just remain...

Jul 9, 2025 9:28 AM in response to Luis Sequeira1

Hi, thanks for your reply. I just tried to sftp into my High Sierra Mac and that didn't work either so guess I will need to start there...


ssh fails with a connection refused on port 22. I notice the port number in the config file is commented out but currently I am not sure how to change that as I never (as far as I know) set a root password....


Any advice would be appreciated but no worries if not...


Thanks...


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I transfer files using SFTP in Sequoia?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.