LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-07-2009, 12:04 PM   #1
elainelaw
Member
 
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
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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: http://linuxcommando.blogspot.com/20...-checking.html

(link lifted from http://www.linuxquestions.org/questi...ements-760292/ )

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?

/Edit

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

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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
Myiagros
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 AM.

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