You are not logged in.
Pages: 1
I have a ssh server setup everything works great but i don`t want to enter the password every time so i tried to follow the ssh page on the
wiki https://wiki.archlinux.org/index.php/Using_SSH_Keys
i followed everything precisely but when i have to
ssh-add ~/.ssh/id_ecdsa
i get this error
/home/user/.ssh/id_ecdsa: No such file or directory
for some reason the file or directory does not exist i cant figure this out at all i have been trying to figure out why id_ecdsa is not in ~/.ssh it may be something trivial but i just cant figure it out please help also /home/user is my home directory
Last edited by cenobyte (2011-04-12 00:11:35)
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
That is a specific command for a particular type of key. If you did not use that sort of key (ecdsa), you will have to use a different file. Try looking in the .ssh folder to see what id_<type> files you have to choose from.
Offline
i dont have any id_ type files to choose from just authorized_keys file on the ssh server but i have them on the machine i am connecting from
Last edited by cenobyte (2011-04-09 02:00:01)
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
i dont have any id_ type files to choose from just authorized_keys file
Did you run ssh-keygen to generate the keys?
It asks where to put the generated keys, with the default location ~/.ssh
Last edited by my0pic (2011-04-09 02:02:22)
Offline
i tried running ssh-keygen on both machines still no luck but now i do have the id files on the server and when i try
ssh-add ~/.ssh/id_ecdsa
it works but when i connect it is still asking for the passphrase
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
If you created a passphrase, this is the normal operation.
See this article for ways to manage keys
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Online
ewaller: You may have noticed he linked to that very article in his original post
cenobyte: I think there is a bit of a misunderstanding here. You don't run ssh-add et. al. on the server side, you do that from the client. The server does not need any id_<type> files unless you plan to use it as a client as well.
Offline
I tried this all over again i made the key on the computer i am connecting from i copied the .pub file to the server followed the steps and still no id_file in the servers .ssh folder so i am still unable to login automatically i follow each step precisely and still no luck
"cenobyte: I think there is a bit of a misunderstanding here. You don't run ssh-add et. al. on the server side, you do that from the client. The server does not need any id_<type> files unless you plan to use it as a client as well."
i know but i tried it anyway hoping it would work this is the only time i have been this stumped with linux since making the full switch back in 2005.
Granted this is not a huge issue but i would like to automatically login to my ssh server.
I will keep trying i also appreciate the help and suggestions from you jac and my0pic any other suggestions this has to be trivial i feel a facepalm will happen ounce i figure this out lol
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
yes, a facepalm is lurking there, i sense it as well
first i'd ls -al ~ on the server, just in case
elsewise my suggestion, copy the file using sshfs
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
yes, a facepalm is lurking there, i sense it as well
first i'd ls -al ~ on the server, just in case
elsewise my suggestion, copy the file using sshfs
i did ls -al on the server both in ~/ and ~/.ssh still no luck i will try sshfs when i get home and will report back the results
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
You do not run ssh-add on the server, you run it on the client. There should be no id_<type> files on the server. That is not where you should be looking. It is only a problem if you have none on the client computer. What is the actual output of "ls ~/.ssh" on the client?
Offline
You do not run ssh-add on the server, you run it on the client. There should be no id_<type> files on the server. That is not where you should be looking. It is only a problem if you have none on the client computer. What is the actual output of "ls ~/.ssh" on the client?
FACEPALM (i did not think of that)
I ran ssh-add on the client now it is working they should clarify that in the documentation here :
that you run ssh-add on the client and not the server otherwise this is the best documentation i have seen yet on SSH
https://wiki.archlinux.org/index.php/Using_SSH_Keys
thank you all so much for the help i really appreciate it
Dell Mini 10v - Intel Atom N270 1.6ghz Dual Core - 1GB Ram - 16GB SSD - Arch Linux /w Openbox
Offline
they should clarify that in the documentation here :
that you run ssh-add on the client and not the server otherwise this is the best documentation i have seen yet on SSH
s/they/you/ - it is a wiki for a reason
Offline
Pages: 1