On Thu, Aug 4, 2011 at 3:23 PM, Alan Chandler <a...@chandlerfamily.org.uk> wrote: > Apologies to lina - I replied directly to her instead of the list = here is > what I sent. > > On 04/08/11 08:21, Alan Chandler wrote: >> On 02/08/11 16:02, lina wrote: >>> Hi, >>> >>> when I tried to ssh some_server, it showed me, >>> >>> Permission denied (publickey,gssapi-with-mic,password). >>> >>> 1] I tried ssh from desktop, laptop and other server, the same problem. >>> 2] I generate a new key by ssh-keygen in some_server, it still has >>> this problem. >>> >>> I can ssh by username@full_some_server_address, but can't access in a >>> simple way, >>> >>> Thanks for any advice, >>> >> >> I think you need to add a stanza in you ~/.ssh/config file >> >> Host github >> HostName github.com >> User git >> IdentityFile ~/mydocs/PCinfo/keys/github/github_ssh_access >> >> >> Here is an example from mine. I can now go >> >> ssh github >> >> and login as git at github >> >> (I actually have loads of these in my config file for all different >> combinations of username and host - I also tend to make different key >> pairs for each host which is why I am specifying an IdentityFile in each.)
Thanks for your suggestions. Actually I have had an inherited config file, which is sound. Just two weeks ago, I messed up the permission issue when I import some other public keys into authorized_keys. I guess I did something like chmod a+w * in .ssh directory. so the problem came out. With someone's help (someone sent me off-list suggestions to check the permission issue of this), which was something I barely realized to examine. Thanks again for your suggestions and others help, Best regards, lina >> >> >> > > > > -- > Alan Chandler > http://www.chandlerfamily.org.uk > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject > of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/4e3a48ed.20...@chandlerfamily.org.uk > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAG9cJmk=qAW+N2ce7ewMk_LwxZ_X=cfvdmyhsggk6kjmomw...@mail.gmail.com