Contents
Type sudo apt-get install openssh-server. Enable the ssh service by typing sudo systemctl enable ssh. Start the ssh service by typing sudo systemctl start ssh. Test it by login into the system using ssh [email protected]
How do I start SSH on Linux?
Linux start sshd command
- Open the terminal application.
- You must log in as root.
- Use the following commands to start the sshd service: /etc/init.d/sshd start. OR (for modern Linux distro with systemd) …
- In some cases, the actual script name is different. For example, it is ssh.service on a Debian/Ubuntu Linux.
How enable and disable SSH in Linux?
Enable or disable the SSH server
- sudo rm -f /etc/ssh/sshd_not_to_be_run sudo systemctl enable ssh sudo systemctl start ssh.
- sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf sudo start ssh.
- sudo systemctl stop ssh sudo systemctl disable ssh.
- sudo stop ssh sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.back.