How to Install SSH Server
sudo apt install openssh-client
sudo apt install openssh-server
man sshd_config
To set your OpenSSH to listen on TCP port 2222 instead of the default TCP port 22, change the Port directive as such:
Port 2222
To have sshd allow public key-based login credentials, simply add or modify the line:
PubkeyAuthentication yes
If the line is already present, then ensure it is not commented out.
To make your OpenSSH server display the contents of the /etc/issue.net file as a pre-login banner, simply add or modify the line:
Banner /etc/issue.net
In the /etc/ssh/sshd_config file.
sudo systemctl restart sshd.service
thanks gan sharingnya
BalasHapusyo sama sama za
Hapus