LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Question SSH login on Centos7


Hello,

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 ?

Thanks
 
Old 11-01-2016, 03:00 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
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?

Try:
Quote:
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
end
Member
 
Registered: Aug 2016
Posts: 115

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@192.168.0.11

enable ssh

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

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

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


Reply


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


All times are GMT -5. The time now is 08:42 AM.

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