-) to remove the account. To add accounts, click on the plus sign (
+). If your account has administrator-level access to the system and you want to be able to log into the system via SSH using that account, you can leave "Administrators" selected.
At this point, if you open a Terminal window and issue the
netstat -an | grep -i ssh, you will see the system
is listening for SSH connections.
$ netstat -a | grep -i ssh tcp6 0 0 *.ssh *.* LISTEN tcp4 0 0 *.ssh *.* LISTEN
When logging in by SSH, use the "short name", which is your user name
rather than the full name for the account. The short name can be
found by opening a Terminal window (the application is found in
Applications/Utilities) and typing the command
which will show the home directory for the account from which you issued
the command. E.g.:
$ echo ~ /Users/jasmith1
In the example above, the short name is "jasmith1". You can also follow the steps listed at OS X Yosemite: If you can’t remember your user name, if you don't know the short name, but would rather make that determination through a GUI than a command line interface (CLI). Note: these instructions were written for OS X Yosemite (10.10.5), but will apply to other versions as well; you can find alternative instructions for obtaining the short name on a Mac OS X 10.5.8 system at SSH Access to an OS X System.
Entries related to SSH logins are logged to
So you could find the entries related to SSH by issuing the command
cat /var/log/system.log | grep -i ssh in a Terminal
window. If you want to determine the IP addresses used for interactive
SSH logins, as would occur if someone provides a userid and password
for an SSH login or
transfer, you can use the commands shown below.
$ grep sshd /var/log/system.log | grep "keyboard-interactive" Feb 16 14:36:03 GSSLA15122293 sshd
: Accepted keyboard-interactive/pam for jasmith1 from 192.168.3.3 port 49602 ssh2 Feb 16 14:41:34 GSSLA15122293 sshd : Accepted keyboard-interactive/pam for jasmith1 from 192.168.3.3 port 49661 ssh2
Created: Tuesday February 16, 2016