To build a connection from local server to remote server

 On local host:

1. Generate key:ssh-keygen -t rsa -b 2048

2. Copy the public key from file: /root/.ssh/id_rsa.pub


On Remote server:

1. Paste it into the file: /root/.ssh/authorized_keys

2. Edit the file: /etc/ssh/sshd_config

PasswordAuthentication no

ChallengeResponseAuthentication no

3. Restart the sshd service 

sudo systemctl restart sshd


Comments

Popular posts from this blog

How to enable the syslog monitoring-Zabbix

Zabbix installation: Distribution setup

API & API in Zabbix