Results 1 to 5 of 5

Thread: Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

  1. #1
    Join Date
    Sep 2010
    Posts
    35

    Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

    Hello everyone, I am trying to an experiment on my server, for this reason I need your help. I have installed openssh 5.5p1 on CentOS5.5 server edition. I did this because I wanted to use new utilities with matching functionality and also I wanted to use password-less login via users. First I have restricted users in the sftponly group to their homedirectoriy and internal-sftp. So that the user can automatically copy files and do password-less login. So can anyone help me out here, I have tried this but I am not getting perfect success in it? Thanks you!

  2. #2
    Join Date
    Nov 2009
    Posts
    1,292

    Re: Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

    Hello, the thing which you are trying to is not that easy, the password-less loging is quite difficult to do. Then too as per my knowledge you must check the following settings to complete your task.
    • .ssh 700 user:root; .ssh/authorized_keys 600 user:root
    • .ssh 700 root:root; .ssh/authorized_keys 600 root:root
    • .ssh 760 user:root; .ssh/authorized_keys 660 user:root

    The above mentioned setting might help you to get through this. All the Best!

  3. #3
    Join Date
    Nov 2009
    Posts
    1,269

    Re: Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

    Hey if above mentioned setting doesn’t help you then I have one solution for you. I am also having some of the setting, I am writing below and just try to apply it on your system and check it is working or not. go to the /etc/ssh/sshd_cofig configuration setting:
    Code:
    RSAAuthentication yes
    PubkeyAuthentication yes
    AuthorizedKeysFile .ssh/authorized_keys
    PasswordAuthentication yes
    ChallengeResponseAuthentication no
    GSSAPIAuthentication yes
    GSSAPICleanupCredentials yes
    UsePAM yes
    AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
    AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
    AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
    AcceptEnv XMODIFIERS
    Subsystem sftp internal-sftp
    Match Group sftponly
    ChrootDirectory /var/sftp/%u
    X11Forwarding no
    AllowTcpForwarding no
    ForceCommand internal-sftp

  4. #4
    Join Date
    Nov 2008
    Posts
    1,185

    Re: Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

    Hey also have an altrernative solution for you, which will help you fix your error. What you need to do is just verify the permission for the file “/var/sftp/DUMMY/.ssh/authorized_keys (0600) and directory /var/sftp/DUMMY/.ssh (0700)”. These both files is owned by the UID of 503 as per your question. Once you verify the above file, also keep in mind that UID is able to get through to /var/sftp/dummy. Because you migh be having the issue of SElinux file. Just check it and solve your problem. All the Best.

  5. #5
    Join Date
    Sep 2010
    Posts
    35

    Re: Unable to do password-less login using openssh 5.5p1 in CentOS 5.5

    Hey thanks lot friends; I have solved my problem with kind help of you all. I have lost the hope of doing such thing but you solution made it simple and I came out of it. I have tried above all method, but don’t know why nothing was working for me. But when I seen the above mentioned method, with the var/sftp/dummy directories, I took chance and I gave another attempt to it and I did it. Thanks to you all again friends, without you it was not possible.

Similar Threads

  1. Unable to login using longer password on Windows 8 Consumer Preview
    By Charu Sharma in forum Operating Systems
    Replies: 1
    Last Post: 16-03-2012, 01:34 AM
  2. Unable to login or reset password for Messenger Plus!
    By ChittiBabu in forum Technology & Internet
    Replies: 2
    Last Post: 20-01-2012, 12:23 AM
  3. openssh/login shell in CentOS 5.5
    By Man-Than in forum Operating Systems
    Replies: 5
    Last Post: 05-05-2011, 10:52 AM
  4. Login: unable to type password at welcome screen (several PCs)
    By Charlie R in forum Windows XP Support
    Replies: 23
    Last Post: 26-11-2009, 08:03 AM
  5. Replies: 1
    Last Post: 28-04-2007, 08:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,281,581.61079 seconds with 17 queries