Manage OpenSSH server from CLI and configure SSH to automatically start during system boot [Linux]
Summary:
Manage OpenSSH server from CLI and configure SSH to automatically start during system boot
Content:
Install SSH service
$ sudo apt-get install ssh
Status from the SSH service using systemctl command.
$ sudo systemctl status ssh
Stop SSH service using systemctl command
$ sudo systemctl stop ssh
Start SSH service using systemctl command
$ sudo systemctl start ssh
Restart SSH service using systemctl command
$ sudo systemctl restart ssh
Configure SSH to automatically start during system boot.
$ sudo systemctl enable ssh Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable ssh Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service. Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
Tagged:
0