You are not logged in.

#1 2013-03-27 18:06:47

whotyjones
Member
From: Salt Lake City UT
Registered: 2012-07-04
Posts: 16
Website

[Solved] SSH identity files missing

I've recently had issues with SSH. When I ssh into a server I get the following:

no such identity: /home/tyjones/.ssh/id_rsa: No such file or directory
no such identity: /home/tyjones/.ssh/id_dsa: No such file or directory
no such identity: /home/tyjones/.ssh/id_ecdsa: No such file or directory
tyjones@xxxxxxxxxx's password: 

I haven't been able to find anything on Google or the Arch Linux forums/wiki.

I haven't tried anything as I'm not sure where to start since I am not sure if I did anything to mess this up. I have recently added a function to my .bashrc file (which caused some issues with commands not being recognize, such as 'ls') and smb.conf but I don't think that would have any effect.

Any thoughts?

Thanks!

Last edited by whotyjones (2013-04-02 13:30:56)

Offline

#2 2013-03-27 19:20:13

swiftgeek
Member
Registered: 2011-04-19
Posts: 31

Re: [Solved] SSH identity files missing

I'm only able to confirm this issue. I have no idea why ssh would look for those files in this simple use-case (logging via password without certificate) :<

And why all of them (rsa dsa ecdsa)? :<

EDIT: It seems to be a harmless, upstream bug (contains workaround) - https://bugs.archlinux.org/task/34490

Last edited by swiftgeek (2013-03-27 19:23:32)

Offline

#3 2013-03-27 19:53:37

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved] SSH identity files missing

Go to /etc/ssh/ssh_config and uncomment

IdentityFile ~/.ssh/id_rsa

or whatever id file you're using.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2013-03-31 09:51:51

whotyjones
Member
From: Salt Lake City UT
Registered: 2012-07-04
Posts: 16
Website

Re: [Solved] SSH identity files missing

Uncommented those lines but the error persisted. I ran ssh-keygen to take care of the id_rsa error, but not sure about the others.

Offline

#5 2013-04-01 07:06:56

Marulkan
Member
Registered: 2009-02-01
Posts: 5

Re: [Solved] SSH identity files missing

You would have to generate a key as well, that is done through the command ssh-keygen.

Offline

#6 2013-04-01 23:52:40

whotyjones
Member
From: Salt Lake City UT
Registered: 2012-07-04
Posts: 16
Website

Re: [Solved] SSH identity files missing

Looking at the ssh-keygen manual, I couldn't find anything to generate the other keys. I tried the -A option to generate all, but it didn't seem to have an effect.

Offline

#7 2013-04-02 01:57:58

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [Solved] SSH identity files missing

Have you generated your own ssh keys?

ssh-keygen -t rsa

Or dsa or whichever type you want, and there are more options available. More detail here: https://wiki.archlinux.org/index.php/SSH_Keys.

Last edited by bananagranola (2013-04-02 01:59:44)

Offline

#8 2013-04-02 13:30:33

whotyjones
Member
From: Salt Lake City UT
Registered: 2012-07-04
Posts: 16
Website

Re: [Solved] SSH identity files missing

Awesome, that took care of the dsa one, which leaves the .ssh/identity file still coming up as missing.

I ended up looking back through the man pages and seeing an option '-f' for the output file.

I ran:

ssh-keygen -f ~/.ssh/identity

and this took care of things. Thanks!

Offline

#9 2013-04-20 07:59:22

dkorzhevin
Member
From: Kiev, Ukraine
Registered: 2010-04-23
Posts: 61

Re: [Solved] SSH identity files missing

Seems, this command doesn't helps:

ssh-keygen -f ~/.ssh/identity

Offline

#10 2013-04-20 08:37:29

whotyjones
Member
From: Salt Lake City UT
Registered: 2012-07-04
Posts: 16
Website

Re: [Solved] SSH identity files missing

What was your output? Also, my room mate is from Kiev (as your location says)

Offline

#11 2013-04-23 12:18:48

kostett
Member
From: Archangelsk, Russia
Registered: 2012-04-14
Posts: 35

Re: [Solved] SSH identity files missing

dkorzhevin wrote:

Seems, this command doesn't helps:

ssh-keygen -f ~/.ssh/identity

make identifies one by one, 4ex

ssh-keygen -t rsa
ssh-keygen -t dsa
ssh-keygen -t ecdsa

it was working for me.

Offline

Board footer

Powered by FluxBB