Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-22-2011, 04:20 PM   #1
LQ Newbie
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19

Rep: Reputation: 0
Cannot log into CentOS server via SSH with newly created user

I have created a new user and would now like to use putty to ssh into my CentOS box. Just to double check I am correct, what permissions do I need to give my new user or check before he will be able to log in via SSH. Also, when reviewing the 'secure' log in /var I noticed I had a line that stated it could not 'bind' to an address of This lead me to believe this may be a DNS issue on my network but common sense immediately told me it worked fine because I can log in with root. Any ideas and thanks in advance.
Old 07-22-2011, 04:28 PM   #2
LQ Newbie
Registered: Dec 2002
Location: UK
Distribution: Mostly FreeBSD and CentOS
Posts: 24

Rep: Reputation: 3
The output from the command: # netstat -napt | grep ssh
should show you on what address and ports SSH is active.

When you say you can login with root, I presume you mean you can login over SSH with root.

This might provide more info:
Log in as root and then run:
# ssh -vv user@localhost

Otherwise there must be something in the logs to tell you why auth is failing. I can't see why root would work but a user just created wouldn't, unless you've allowed SSH for a certain group of users only.
Old 07-24-2011, 07:54 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,790

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
A user should be able to login straight away if its interactive via a passwd. It only gets messy if you want to use auth-keys instead.
In the long run (after you've properly enabled your normal acct) I'd recommend disabling root login via ssh, as this is the first thing script-kiddies go for.
PermitRootLogin no
in sshd_config on server end.
Old 07-25-2011, 05:18 AM   #4
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
You "cannot bind" during sshd start means there is already a process running on your configured ssh port. Try
netstat -plan
to check which process is running on the configured port for sshd. Possibly sshd has not shutdown correctly for some reason.

Also try
ssh -vvx $HOSTNAME
, this will create the maximum information on the client whats exactly going on during the connection. Also check /var/log/secure on the target host, there will be all login attempts logged.
Old 08-11-2011, 08:37 AM   #5
LQ Newbie
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19

Original Poster
Rep: Reputation: 0
I apologize for my absence. My new son was born last week and am in transition with jobs so things have been hectic. Due to my business outside of my home I have had to abandon ship on this particular task for the moment. I am going to mark this thread as solved and hopefully we can pick back up on it some time in the near future. Thank you very much for your answers and time you have put in to help me resolve this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Mint8 Helena LiveCD on USB Stick - Always logs into Mint user, not newly created user rrrssssss Linux Mint 3 04-20-2010 02:14 PM
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 08:32 AM
cannot login as newly created user in terminal linoops Linux - Newbie 1 06-04-2004 08:07 PM
Is there a way to custiomize newly created user profiles? pandersson61 Linux - General 3 01-17-2004 02:12 AM
Newly created user can't run kde neeyo Linux - General 4 04-11-2002 03:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration