Results 1 to 3 of 3
I am manually trying to setup ssh. This machine has a light weight (not all commands present, rpm can't be installed) SLES11 distro. Code: I manually copied the openssh files ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-22-2012 #1
- Join Date
- Dec 2010
Manually setting up an SSH server
I manually copied the openssh files to the server: linux-k3qf:~ # (rpm -ql $(rpm -qa | grep openssh-5)) 1) /etc/init.d/sshd 2) /etc/pam.d/sshd 3) /etc/slp.reg.d /etc/slp.reg.d/ssh.reg 4) /etc/ssh /etc/ssh/ldap.conf /etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config 5) /etc/sysconfig/SuSEfirewall2.d/services/sshd 6) /usr/bin/scp /usr/bin/sftp /usr/bin/slogin /usr/bin/ssh /usr/bin/ssh-add /usr/bin/ssh-agent /usr/bin/ssh-copy-id /usr/bin/ssh-keyconverter /usr/bin/ssh-keygen /usr/bin/ssh-keyscan 6.1) /usr/lib/ssh /usr/lib/ssh/sftp-server /usr/lib/ssh/ssh-keysign /usr/lib/ssh/ssh-ldap-helper /usr/lib/ssh/ssh-ldap-wrapper /usr/sbin/rcsshd /usr/sbin/sshd
localhost:~/Desktop # ssh 184.108.40.206 Permission denied (publickey,keyboard-interactive). Here is the ssh verbose output: linux-k3qf:~ # ssh -v 220.127.116.11 OpenSSH_5.1p1, OpenSSL 0.9.8j-fips 07 Jan 2009 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 18.104.22.168 [22.214.171.124] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1 debug1: match: OpenSSH_5.1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '126.96.36.199' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,keyboard-interactive debug1: No more authentication methods to try. Permission denied (publickey,keyboard-interactive).
./sshd start Starting ssh daemon ...............running
Just to add: the server (our distro) does not require any authentication method, if logged in (not using ssh), also it is a very light weight distro (SLES11) doesn't support most of the commands like rpm etc.
ADDED: Our distro does not require a password to login. The /etc/passwd for root is "x"
Did some study and found, it's failing in password authentication (keyboard-interactive) is the stage where it searches for password.
Last edited by kingsmasher1; 05-22-2012 at 08:14 AM.
- 06-25-2012 #2
My question may be obvious but have you allow root to connect to ssh in your ssh configuration?
- 06-26-2012 #3
- Join Date
- Jan 2012