0

I have 2 shell accounts ont 2 different hosts shell A: shell I want to login using a SSH key server-A.com shell B: shell I'm using to login to A without a password but using SSH key server-B.com

I'v emailed server-A.com sysadmin which gave me the bellow tutorial URLs

I'v done Iv created a private/public SSH key on server-A.com using "ssh-keygen -t rsa -C username@server-A.com" and put the private key on server-B.com in ~/.ssh/server-B.com I chmod 700 ~/.ssh/ and chmod 600 ~/.ssh/server-B.com I added server-A.com public key to to ~/.ssh/authorized_keys on server-B.com cat ~/.ssh/server-B.com.pub >> ~/.ssh/authorized_keys # on server-B.com I'v checked ~/.ssh/config (no) and /etc/ssh/ssh_config which contained (other # comment lines not printed) # PasswordAuthentication yes SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes

from shell A
    ssh-keygen -t rsa -C evil666@ubuntu.eskimo.com
    ssh-keygen -t rsa -b 4096 -C "evil666@ubuntu.eskimo.com"

from shell B
    ssh-keygen -f "/home/username/.ssh/known_hosts" -R server-A.com


I followed the tutorial on
    https://kb.iu.edu/d/aews
    https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/create-with-openssh/
    https://linuxize.com/post/how-to-set-up-ssh-keys-on-ubuntu-1804/

I'v tried everything I could, but I'm not desperate :)

can you tell me what went wrong ?

thank's in adavance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.