阅读831 返回首页    go iPhone_iPad_Mac_apple


Enable SFTP in OS X 10.10.5

I am trying to enable SFTP in OS X 10.10.5 by using

>System Preferences/Sharing

and ticking off Remote Login

 

however when I use either:

$ sftp localhost

sftp localhost

in terminal I get back:

Invalid command

 

I'm using the direction here from a document that was written in 2011 but not getting anywhere with it.

https://osxdaily.com/2011/09/30/remote-login-ssh-server-mac-os-x/

FWIW I would place my Terminal skills up there with my blindfolded harpsichord abilities so if you can answer it prepare for a test of the limits of your patience with confused questions by me.



The sftp (man sftp) command uses an encrypted ssh transport. Thus, at minimum, I would think that you would have to ensure that you have properly configured the ssh part prior to using sftp.



I have ssh running but now when I enter

sftp localhost

I get back

Trying ::1...

ftp: Can't connect to `::1': Connection refused

Trying 127.0.0.1...

ftp: Can't connect to `127.0.0.1': Connection refused

ftp: Can't connect to `localhost'

ftp> sftp localhost

?Invalid command.



最后更新:2017-08-21 21:44:11

  上一篇:go Corrupted keychain usernames and passwords
  下一篇:go Unlock ipad