You can do a scp transfer from the server to the client to get the key,
since it looks like you have password-access:
scp user@server:\locationofprivatekey ~/.ssh/id_rsa

If you have a different port, use the -p option of scp:
scp -p 1234 user@server:\locationofprivatekey ~/.ssh/id_rsa

Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of five.

<https://plus.google.com/u/0/103182072532361592558>
<https://www.facebook.com/jeremiahbess>
  <http://www.linkedin.com/profile/view?id=47451026>



On Fri, Feb 17, 2012 at 10:49, Scott Vargovich <[email protected]>wrote:

> Ok - here are the answers to your battery of questions...
>
> 1.  Yes
> 2.
> -rw------- 1 scott scott  793 2010-10-08 15:01 authorized_keys
> -rw------- 1 scott scott  670 2011-08-12 14:19 authorized_keys2
>
> The pub key is saved in the authorized_keys file.
>
> 3.
> drwx------   2 scott scott        117 2012-02-17 10:53 .ssh
>
> 4.  Yes
> 5.
> scott@bletchley:~/.ssh$ ls
> authorized_keys  known_hosts
>
> 6.  No file to have permissions on.
> 7.
> drwx------  2 scott users 4096 Feb 17 11:07 .ssh
>
> It appears I have fubared copying the server's pub key to the client.  I
> use a high non-standard port for openssh_server, so the copy command didn't
> work properly.  What would be the easiest way to copy that file using a
> port other than 22 for openssh_server?
>
> On Fri, Feb 17, 2012 at 12:01 PM, Jeremiah Bess 
> <[email protected]>wrote:
>
>> Oooo! I can help with this. I use this all the time, love it.
>>
>> The  bletchley.domain_not_set.invalid  is the name of the computer you
>> are SSHing from. That really doesn't have anything to do with passwordless
>> login.
>>
>>    1. Do you have the your public key saved in the
>>    ~/.ssh/authorized_keys file on your SSH server?
>>    2. What are the permissions on that file?
>>    3. What are the permissions on that folder?
>>    4. Have you altered the /etc/ssh/sshd_config on the server to have
>>    the line, "PubkeyAuthentication yes"
>>    5. On your SSH client, do you have your public key saved in
>>    ~/.ssh/id_rsa or ~/.ssh/id_dsa?
>>    6. What are the permissions on that file?
>>    7. What are the permissions on that folder?
>>
>> Let's work with that stuff first.
>>
>> Jeremiah E. Bess
>> Network Ninja, Penguin Geek, Father of five.
>>
>> <https://plus.google.com/u/0/103182072532361592558> 
>> <https://www.facebook.com/jeremiahbess>
>>   <http://www.linkedin.com/profile/view?id=47451026>
>>
>>
>>
>> On Fri, Feb 17, 2012 at 09:46, Scott Vargovich <[email protected]>wrote:
>>
>>> Here's my pastebin:
>>>
>>> http://pastebin.com/QcVqVqDR
>>>
>>> I tried to set up passwordless login by following this page:
>>>
>>>
>>> http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/
>>>
>>> I tried commenting out the 'domain_not_set.invalid' line in
>>> /etc/resolv.conf, which did nothing.
>>>
>>> I'm running Arch Linux.  I'm not sure if the domain not set issue is
>>> related to my trying to set up passwordless login.  The first time I
>>> noticed it was right after I tried this hack.  I searched duckduckgo.comand 
>>> couldn't find a solved mailing list post.  HELP?!?!?!
>>>
>>> Thanks,
>>> --
>>> <><  Scott Vargovich  <><
>>> ------------------------------------------
>>> OpenPGP Key ID: F8F5DC7E
>>> ------------------------------------------
>>>
>>> --
>>> You received this message because you are subscribed to the Linux Users
>>> Group.
>>> To post a message, send email to [email protected]
>>> To unsubscribe, send email to
>>> [email protected]
>>> For more options, visit our group at
>>> http://groups.google.com/group/linuxusersgroup
>>> References can be found at: http://goo.gl/anqri
>>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
>>> http://cdn.fsdev.net/List-Rules.pdf)
>>>
>>
>>  --
>> You received this message because you are subscribed to the Linux Users
>> Group.
>> To post a message, send email to [email protected]
>> To unsubscribe, send email to
>> [email protected]
>> For more options, visit our group at
>> http://groups.google.com/group/linuxusersgroup
>> References can be found at: http://goo.gl/anqri
>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
>> http://cdn.fsdev.net/List-Rules.pdf)
>>
>
>
>
> --
> <><  Scott Vargovich  <><
> ------------------------------------------
> OpenPGP Key ID: F8F5DC7E
> ------------------------------------------
>
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
> http://cdn.fsdev.net/List-Rules.pdf)
>

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to