LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2009, 06:21 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
[RESOLVED]ssh problem - permission denied


I have two servers: A and B with centos 5.2 x86.

The problem is from A to B (ssh test1@Bserver.com) works fine.
However from B to A (ssh test2@Aserver.com) shows "permission denied".

If copy "/etc/ssh/sshd_config" of A to B, then will this problem fix?

Last edited by windstory; 03-11-2009 at 04:27 PM. Reason: [RESOLVED]
 
Old 03-11-2009, 06:31 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Does the user test exist on Aserver?
 
Old 03-11-2009, 06:35 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by repo View Post
Does the user test exist on Aserver?
repo,

This means an example user.

Real users' name of A and B server are different.

For preventing confuse, I will change two users' name.
 
Old 03-11-2009, 06:50 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
so the user exist.
Any pointers in
/var/log/auth.log?
you can try
Code:
ssh -v user@Aserver.com
Can you login from the server itself?
Code:
ssh user@127.0.0.1
You are not trying as root right?
 
Old 03-11-2009, 04:26 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by repo View Post
so the user exist.
Any pointers in
/var/log/auth.log?
you can try
Code:
ssh -v user@Aserver.com
Can you login from the server itself?
Code:
ssh user@127.0.0.1
You are not trying as root right?
repo,

1) ssh user@127.0.0.1 <- Yes

2) "ssh -v user@Aserver.com" gives me hint. Password is incorrect.

Thanks a lot!
 
  


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
CRON problem: (rsync: Failed to exec ssh: Permission denied (13)) Fairys Fedora 6 01-16-2008 06:34 PM
SSH command, permission denied Abstractt Linux - Newbie 2 11-12-2007 06:14 AM
SSH: Permission denied, please try again. sanatox Linux - Security 3 01-15-2007 09:47 PM
ssh -Permission denied zaphod_es Linux - Networking 4 05-21-2006 01:56 PM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 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