Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-31-2016, 07:13 PM   #1
LQ Newbie
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
Question SSH login on Centos7


I'm using centos7 and I installed my server successfully. I added a super user to the wheel group which I'm planning to use it for ssh and sftp. But when I tried to log in ssh via putty using this command :

myusername@ServerIP and I put my password.

it gives me access denied.. so what's solution for that ?

Old 11-01-2016, 03:00 AM   #2
Senior Member
Registered: Apr 2010
Posts: 2,140

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
have you tried the root user account, are you able to login?

Is your SSH service running? Is the firewall ready to accept the SSH connection?

Are you connecting on the LAN or over the Internet?

ss -nlput | grep sshd
post back the result.

Last edited by JJJCR; 11-01-2016 at 03:01 AM. Reason: edit
Old 11-01-2016, 03:03 AM   #3
Registered: Aug 2016
Posts: 266

Rep: Reputation: Disabled
go to /etc/ssh/sshd_config remove # sign from port number. i suppose you dont have firewall.

change port to some other number

ssh -p 3333 user@

enable ssh

systemctl start sshd
Old 11-01-2016, 11:17 AM   #4
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Check your logs for any issues;

cat /var/log/secure
1 members found this post helpful.


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] Fast login via ssh / Slow login via login manager with machine in AD-domain c01d Linux - Server 2 03-01-2016 02:52 AM
securing CentOS7 Server ssh/vsftp w/key | multiple client pc's thealmightyos Linux - Security 3 10-13-2014 01:23 PM
[SOLVED] Connecting to CENTOS7 via SSH over WAN/Internet thealmightyos Linux - General 4 08-11-2014 04:45 PM
Remote ssh login (passwords useless), and local login (using password) linuxStudent11 Linux - Security 1 01-09-2013 02:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 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