06-29-2018 07:07 AM - edited 03-08-2019 03:31 PM
Hi
I am trying to set up passwordless ssh on a nexus 3524x switch.
I found some instructions to do so here:
To copy the id_rsa.pub key to bootflash (using sftp) they say:
#copy sftp: bootflash
I do this and enter the required information and it seems to go ok, but when I then try to set the ssh key for the user using this command:
#username <username> sshkey file bootflash:id_rsa.pub
I get an error message: 'cannot open input ssh key file'.
When I dir bootflash: I cannot see id_rsa.pub, but when I repeat the copy command thinks there is already a id_rsa.pub file there and asks if I want to overwrite it.
Has anyone seen this error before or can see what I am doing wrong ? Am I using the wrong syntax to specify the bootflash ? Does the 'cannot open input ssh key file' mean it cannot find the file, or that it does not have the correct permissions for it ?
Solved! Go to Solution.
07-02-2018 02:11 AM
Ok - I was misinterpreting the copy command
I thought
copy stftp: bootflash
meant copy the file I specify to the bootflash: directory to a file of the same name. It seems it actually means copy the file to a file named 'bootflash' (in the bootflash area), so I was looking for the wrong file name. The copy did work and after a rename I now have passwordless login.
07-02-2018 02:11 AM
Ok - I was misinterpreting the copy command
I thought
copy stftp: bootflash
meant copy the file I specify to the bootflash: directory to a file of the same name. It seems it actually means copy the file to a file named 'bootflash' (in the bootflash area), so I was looking for the wrong file name. The copy did work and after a rename I now have passwordless login.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide