Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    34

    Question Manually setting up an SSH server


    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 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
    The problem is that, when i try to login, it gives error:

    Code:
    localhost:~/Desktop # ssh 164.99.138.196
    Permission denied (publickey,keyboard-interactive).
    
    
    Here is the ssh verbose output:
    linux-k3qf:~ # ssh -v 164.99.138.196
    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 164.99.138.196 [164.99.138.196] 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 '164.99.138.196' 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).
    In the server where i am trying to connect, i manually run the ssh file, which should be present in /etc/init.d/sshd, but since /etc/init.d is no read permission, i run this script locally, and it says:
    Code:
    ./sshd start 
    Starting ssh daemon ...............running
    What do i need to do? Please help me..this is urgent

    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 09:14 AM.

  2. #2
    Just Joined! rukiaEnix's Avatar
    Join Date
    Jun 2012
    Location
    Mexico
    Posts
    16
    My question may be obvious but have you allow root to connect to ssh in your ssh configuration?

  3. #3
    Linux Newbie
    Join Date
    Jan 2012
    Location
    Ohio
    Posts
    175
    Quote Originally Posted by kingsmasher1 View Post


    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.
    Did you make the change to the sshd_config file to allow empty passwords? By default OpenSSH requires a password.
    OpenSSH FAQ

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •