Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-07-2009, 12:04 PM   #1
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
ssh problem

I have two servers ( serverA and serverB ) , and setup ssh without password , I use the command "scp file testusr@serverB:/tmp " can scp file to serverB without password , it used for long time without any problem , but I don't know why I suddenly can't use it , I tried to re-setup it and restart sshd , but still not work, the error is

testusr@serverB's password

can advise what is the possible reason of it ? what can i do ? thx in advance.
Old 10-07-2009, 12:12 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian 11
Posts: 6,125

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Try using the -v or -vvv option to either scp or ssh. This (Very Very)Verbose mode should tell you what is (not) happening.

Edit: You might also look here:

(link lifted from )

and tell us how much you know about this remote server, is it yours? Do you administer it? Have you changed anything on it recently?


Last edited by tredegar; 10-07-2009 at 12:19 PM.
Old 10-07-2009, 12:27 PM   #3
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 904

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Off hand I would suspect that the key file in your .ssh is missing, or the .ssh directory on the other machine got messed with. Either the authorized_keys file, or the .pub files got moved.
Old 10-07-2009, 01:33 PM   #4
Registered: Mar 2009
Distribution: Ubuntu, CentOS 5.3
Posts: 75

Rep: Reputation: 18
Check the permissions on the .ssh folder. Make sure they are owned by the user you are trying to SSH with.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration