[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to examine ssh problem



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.)
>
>
>



--
Alan Chandler
http://www.chandlerfamily.org.uk


Reply to: