user password doesnot work via ssh
Hi all,
I am trying to connect to the client from server with the user test. on the client i have added user "test" and from the server, i am trying to connect to client via ssh as below Code:
root@server:/home# su - test where am i going wrong.please suggest |
That looks normal, if it were roort. Most systems allow only either key-based or certificate-based login for root. Try logging in as another user or else make and install a key pair for root. However it is usually a bad idea to allow remote login for root and most tasks can be accomplished by other means. What problem are you trying to solve?
Edit: misread the first line. See the -v -v -v suggestion instead. |
you might want to use ssh -vvv <host> to see what's going on. We don't know the configuration so we can hardly find the root cause. Would be nice to give us more details.
|
The relevant lines from the client configuration file ~/.ssh/config might help too, if it is in use.
If you want to see the full set of options as they are going to be applied to that particular session, see the -G option for the SSH client: Code:
ssh -G test@client1 | sort | less |
Quote:
|
Quote:
Code:
user test |
Check that the remote system actually allows password based logins. It may be configured for key-pair only.
|
If anything at all involving client-server interaction not working as expected you should start by analysing server logs - do it. OpenSSH log is in /var/log/auth.log, you might want to increase log verbosity using LogLevel directive in /etc/ssh/sshd_config.
|
Quote:
|
OP is connecting “from server to client”…
Is sshd configured and running on the client? I’m guessing not. ssh is a one-way process. Being able to connect from machine A to machine B does not mean you can connect from machine B to machine A. You’d need to set up sshd on the “client” machine to be able to connect to it (at which time, the “server” will become the client and vice versa) |
Quote:
|
Quote:
sshd is configured and it justs works fine from another machines. |
Quote:
Code:
/usr/sbin/sshd -p 2222 -d -d -E /tmp/server1.ssh.log Code:
ssh -p 2222 -v -E /tmp/client1.ssh.log test@client1 |
Quote:
Thank you. I ran this on server and client side and I have the following. Says too many authentication failures. may be i create new user on server and client and try again on client1: Code:
PAM: Authentication failure for illegal user test from "172.60.20.15" on server1: Code:
Disconnect from 172.67.8.90 port 2222:22 Too many authentication failureson client1: |
Quote:
Code:
/usr/sbin/sshd -T -C user=test | sort |
All times are GMT -5. The time now is 11:34 AM. |