public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] No access as normal user to my own.ssh-folder
Date: Wed, 26 Sep 2007 20:16:22 +0100	[thread overview]
Message-ID: <200709262016.31870.michaelkintzios@gmail.com> (raw)
In-Reply-To: <200709262059.55553.laubner@gmx.net>

[-- Attachment #1: Type: text/plain, Size: 1785 bytes --]

On Wednesday 26 September 2007, Herbert Laubner wrote:
> I want to connect to another machine in my local network using ssh. Somehow
> I do not get it managed to write the fingerprint to the .ssh/known_hosts
> because of missing rights.
>
> herbert@windose ~ $ ssh 192.168.0.50
> The authenticity of host '192.168.0.50 (192.168.0.50)' can't be
> established. RSA key fingerprint is
> c5:1f:98:93:f3:30:01:b1:95:3e:30:40:47:ef:97:35. Are you sure you want to
> continue connecting (yes/no)? yes
> Failed to add the host to the list of known hosts
> (/home/herbert/.ssh/known_hosts).
> Password:
> Last login: Wed Sep 26 20:37:42 2007 from 192.168.0.20
> Welcome to Darwin!
> rlbk-hmbg-de01:~ herbert$ exit
> logout
> Connection to 192.168.0.50 closed.
>
> herbert@windose ~ $ ls -al /home/herbert/.ssh/
> ls: Zugriff auf /home/herbert/.ssh/. nicht möglich: Keine Berechtigung
> ls: Zugriff auf /home/herbert/.ssh/known_hosts nicht möglich: Keine
> Berechtigung
> ls: Zugriff auf /home/herbert/.ssh/.. nicht möglich: Keine Berechtigung
> insgesamt 0
> d????????? ? ? ? ?             ? .
> d????????? ? ? ? ?             ? ..
> d????????? ? ? ? ?             ? known_hosts
>
> I think, it has to be a stupid mistake. I did
> windose ~ # chown herbert /home/herbert/.ssh
> windose ~ # chgrp users /home/herbert/.ssh
>
> but this did not help??

I cannot see what your access rights are (all I got was "?" as shown above).  
Add -r to chgrp to recursively change the files under it.  Finally, if the 
character "d" is correct for directory, then your known_hosts is not a file 
as it should be, but perhaps by mistake you created it as a directory and 
have not adapted your ssh_config, or ~/.ssh/config to reflect that.

HTH.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2007-09-26 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 18:59 [gentoo-user] No access as normal user to my own.ssh-folder Herbert Laubner
2007-09-26 19:12 ` Elias Probst
2007-09-26 19:16 ` Mick [this message]
2007-09-26 19:38   ` [gentoo-user] No access as normal user to my own.ssh-folder [SOLVED] Herbert Laubner
2007-09-26 19:21 ` [gentoo-user] No access as normal user to my own.ssh-folder Alan McKinnon
2007-09-26 19:41   ` Herbert Laubner
2007-09-26 23:10   ` Dan Farrell
2007-09-27  9:56     ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709262016.31870.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox