Networking Forums

Networking Forums > Computer Networking > Linux Networking > public key problems

Reply
Thread Tools Display Modes

public key problems

 
 
Ron Eggler
Guest
Posts: n/a

 
      03-20-2008, 02:24 PM
Hi,

Here's what Im doing:
- I create a key public key file (shell script)
- I copy it to the server by rsync (shell script)
- On the server a file parses the key file and appends the content to
~/.ssh/authorized_keys (perl script)
- I now can access the server by ssh with no password prompt
- I'm also able to copy a file by scp with no password prompt (scp test3
root@192.168.101.3:/usr/share/NovaxTSP/test3)
- Now a file gets copied by scp with this syntax:
scp $tempfile root@$ip:$upload_dir/$newfile (shell script)
- Now I'm not able to ssh anymore, it's asking me for a password
HUH???
I copied the ~/.ssh/authorized_keys to ~/.ssh/authorized_keys_backup when it
worked and did a diff ~/.ssh/authorized_keys ~/.ssh/authorized_keys_backup
to see if it has changed but it doesn't return me anything. I can remove
~/.ssh/authorized_keys and start over again and it's happening the same way
over and over again. /var/log/messages doesn't tell me anything either.
Isn't this weird???? What could this be? This is exactly something i
wouldn't have needed before my Easter break
Please help me being happy!
--
chEErs roN
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      03-20-2008, 04:29 PM
On Mar 20, 8:24 am, Ron Eggler <t...@example.com> wrote:

> - Now I'm not able to ssh anymore, it's asking me for a password
> HUH???


You need to troubleshoot. Do an 'ssh -vv' once when it's working and
once when it asks you for a password. Then compare them and see what
worked before that didn't work after.

DS
 
Reply With Quote
 
Andrew Gideon
Guest
Posts: n/a

 
      03-20-2008, 05:42 PM
On Thu, 20 Mar 2008 10:29:58 -0700, David Schwartz wrote:

> Then compare them and see what
> worked before that didn't work after.


FWIW, I'd guess "permission problem". SSH requires minimal permissions
on certain <pardon the pun> key files. If you're replacing such a file
and the content is valid, this is what I'd check first.

- Andrew
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing problems with two public NICs Oscar Gunnarsson Windows Networking 2 01-16-2008 08:55 PM
Problems with Changing the Public IP Block used for squid dboltz Linux Networking 0 09-18-2007 10:14 PM
intermittent problems with public hotspots Dwiz Wireless Internet 0 01-12-2007 01:10 AM
problems accessing services over the public internet MCSE Windows Networking 1 11-29-2005 01:19 PM
Replace private IP by public IP : Big problems !!! ;-( Fred99 Linux Networking 2 07-26-2004 07:27 AM



1 2 3 4 5 6 7 8 9 10 11