I am trying to get SSH/SFTP working on my iMac running Lion so that one of my friends can connect to me remotely. I have managed to get it working using my local user account, but I need to understand how I can add an additional account that my friend could use to SSH into my machine. This is probably really simple, but if someone could point me in the right direction in would be appreciated.
MacOS – Using SSH on an iMac running Lion
macmacosssh
Related Question
- MacOS – Can’t use machine name to login using SSH anymore on Yosemite, how to fix
- Second password for SSH-only access
- MacOS Sierra SSH Active Directory login not working
- MacOS – Why does the SSH connection lag when typing
- How to import self-signed certificate over SSH? (bounty)
- Remote SSH connection
- MacOS – Port 22: Connection Refused SSH Error
Best Answer
Easiest way in this case is to just
In addition you may want to tighten up your system a bit by preventing SSH logins without keys. Open
/etc/sshd_config
in any text editor and setAfterwards restart SSH by disabling and enabling remote login in Preferences.