Loading...

Key Authentication

Copy Public Keys

ssh-copy-id = use locally available keys to authorise logins on a remote machine

Example copy public key to three kafka nodes

ssh-copy-id -i ~/.ssh/id_rsa.pub tan@kafka-node1
ssh-copy-id -i ~/.ssh/id_rsa.pub tan@kafka-node2
ssh-copy-id -i ~/.ssh/id_rsa.pub tan@kafka-node3

scp

copy files from host to remote host with different port

scp -P 3022 osgi.conf user@remotehost:/etc/config