Configuration
macOS
MacOS already comes preinstalled with sshd
1. Open sshd config file with the following command
vim /etc/ssh/sshd_config2. make any changes
3. start ssh server
sudo service ssh restart
apt-get
https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys http://linux-sys-adm.com/how-to-install-and-configure-ssh-on-ubuntu-server-14.04-lts-step-by-step/
1. Open sshd config file with the following command
vim /etc/ssh/sshd_config2. make any changes
3. start ssh server
sudo service ssh restart
Server Setup
macOS
already provided in MacOS
1. Start Stop Restart
In System Preferences under Sharing, there is an option for Remote Login.
This will run sshd at startup (through launchd) and enable SSH access with standard options. To tweak the sshd options, edit /etc/sshd_config (you’ll need to do this in a sudo shell or via sudo vi /etc/sshd_config).
apt-get
1. install sshd using apt-get in terminal
sudo apt-get install openssh-server2. verify sshd
which sshd3. verify status of ssh server (at time of writing, ssh server automatically starts and is enabled)
sudo systemctl status ssh4. Start Stop Restart Status
sudo systemctl start sshsudo systemctl stop sshsudo systemctl restart sshsudo systemctl status ssh