![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
public key problems
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 |
|
|||
|
Re: public key problems
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 |
|
|||
|
Re: public key problems
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 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|