I have one MT RB1100x 6.43 and two linux boxes A and B running CentOS and SSH
Both linux boxes have /root/.ssh/id_rsa and id_rsa.pub created with ssh_keygen -b 2048 -t rsa
From linux box A I have a perl script that installs the public key only into the MT with
1.) ncftpput MT -u username -p password / /root/.ssh/id_rsa.pub which works perfectly, it ends up in the file directory.
2.) ssh username@MT /user ssh-keys import pub id_rsa.pub user username
This then asks me for the password for username, I type it in, and it imports the id_rsa.pub correctly.
Now I can ssh username@MT from Linux box A and it lets me in without a password.
Then I do the same thing from Linux box B.
1.) works fine, the public key is also id_rsa.pub and it goes into the file directory of MT.
2.) This does not work, when the command asks me for the password for username, I type it in, and
I get permission denied.
If I go back to linux A it lets me in fine without a password.
If I telnet into the MT box it lets me in fine.
If I do /user ssh-keys import pub id_rsa.pub user username
it also works fine. Now aI can get into MT from both A and B without a password.
But if instead I do
ssh username@MT /user ssh-keys import pub id_rsa.pub user username,
it asks me for the password, and fails to let me in and does not install the key.
Why would this be?
Installing from Linux to LInux box does not have the problem
Homer W Smith CEO LIghtlink Internet