|
ssh-keygen, ssh not finding key directory (~/.ssh)
|
|
2012-07-09, 07:40 PM
Post: #1
|
|||
|
|||
|
ssh-keygen, ssh not finding key directory (~/.ssh)
ssh-keygen and ssh are not finding the key directory. ssh doesn't pick up the directory even when I point it to ~/.ssh with the -i option:
bash-4.2$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (//.ssh/id_rsa):^C bash-4.2$ ssh quicksilver Could not create directory '/.ssh'. The authenticity of host 'quicksilver (192.168.3.3)' can't be established. RSA key fingerprint is 42:7b:ed:cf:8b:6a:d2:de:2b:16:03:ef:bf:4f:3e:a4. Are you sure you want to continue connecting (yes/no)? ^C bash-4.2$ echo $HOME /dev/fs/C/Users/jhs bash-4.2$ ssh -i "$HOME"/.ssh/id_rsa quicksilver Could not create directory '/.ssh'. The authenticity of host 'quicksilver (192.168.3.3)' can't be established. RSA key fingerprint is 42:7b:ed:cf:8b:6a:d2:de:2b:16:03:ef:bf:4f:3e:a4. Are you sure you want to continue connecting (yes/no)? ^C bash-4.2$ I see the same behavior with ksh. HOME, LOGNAME, and USERNAME are all set. HOME is set to /dev/fs/C/Users/jhs Suggestions? tx, Jim Snyder |
|||
|
2012-07-10, 01:53 AM
Post: #2
|
|||
|
|||
|
RE: ssh-keygen, ssh not finding key directory (~/.ssh)
Set the user's home directory in the user database.
ssh uses the information from the user database for what the home directory is. The HOME environmental variable is not trusted because it can be spoofed. The output from, for example, the finger command is from the user database ("finger -l"). Refer to FAQ entry 3.08 and 3.09 for setting it. |
|||
|
2012-09-08, 01:27 AM
Post: #3
|
|||
|
|||
|
RE: ssh-keygen, ssh not finding key directory (~/.ssh)
Nice post...Thanks for the info.
Pass4sure http://www.pass4sure.com/ Exam CCNA http://www.pass4sure.com/CCNA.html Training CCNP http://www.pass4sure.com/CCNP.html study guide CISSP http://www.pass4sure.com/CISSP.html certification CCIE http://www.pass4sure.com/CCIE.html |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)


Search
Member List
Calendar
Help



