I am trying to use public/private rsa key pair, but login fails. This is on a local network. The work station is Linux Mint. i have used "chsh -s /bin/bash mark". Then i set NO to allow secure shell & NO to allow administrative command in the web interface. Any coaching will be appreciated. - Thanks - Old tony
The below is from my Linux Mint terminal screen:
$ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oldtony/.ssh/id_rsa):
/home/oldtony/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oldtony/.ssh/id_rsa.
Your public key has been saved in /home/oldtony/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:9Cz/EdXImcpgzoYZy67nYEhEKe4KCS82NGsbgGXWV8c oldtony@oldtony11
$ssh-copy-id mark@192.168.3.56
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
mark@192.168.3.56's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'mark@192.168.3.56'"
and check to make sure that only the key(s) you wanted were added.
$ssh mark@192.168.3.56
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).