#
How to authorize root ssh connexion on ubuntu
By
Adrien
- Edit sshd_config
nano /etc/ssh/sshd_config
- Change PermitRootLogin without-password to yes
PermitRootLogin yes
- Restart SSH Service
service ssh restart
#
How to configure SSH connexion with certificates
- Generate keys
ssh-keygen -b 4096
- Copy public key on distant server
ssh-copy-id username@remote_host
Tap yes and enter the distant user's password
Output
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'username@remote_host'"
and check to make sure that only the key(s) you wanted were added.
#
Deactivate authentication by password
sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
sudo systemctl restart ssh
Opening SSH Connexion with mRemoteNG
https://technotes.khitrenovich.com/opening-ssh-aws-hosted-linux-servers-mremoteng/