-
Notifications
You must be signed in to change notification settings - Fork 3
linux sshd ubuntu
ghdrako edited this page Dec 12, 2023
·
6 revisions
Install
sudo apt install openssh-server
sudo ufw status
sudo ufw enable
sudo ufw allow ssh
sudo ufw reload
sudo sshd -d -p 2222
sudo mkdir /run/sshd
sudo sshd -d -p 2222
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall openssh-client
sudo cat /etc/ssh/sshd_config
sudo systemctl status sshd
sudo systemctl start sshd
sudo systemctl enable --now ssh
journalctl -xeu ssh.service
sudo systemctl stop sshd
sudo systemctl reload sshd
sudo systemctl restart sshd
Test