Wednesday, June 18, 2014

ssh connect to host port 22 Connection refused

After installing Fedora-Live-Desktop-i686-20-1, I could not login because sshd deamon was not running.

[root@merope sysconfig]# ssh eider@thanatos
ssh: connect to host thanatos port 22: Connection refused
[root@merope sysconfig]#

Just start it by using "service sshd start" and everything works fine:

[root@thanatos ssh]# uname -a
Linux thanatos 3.11.10-301.fc20.i686 #1 SMP Thu Dec 5 14:21:31 UTC 2013 i686 i686 i386 GNU/Linux
[root@thanatos ssh]# service sshd start
Redirecting to /bin/systemctl start  sshd.service
[root@thanatos ssh]# service sshd status
Redirecting to /bin/systemctl status  sshd.service
sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled)
   Active: active (running) since Wed 2014-06-18 13:45:13 BRT; 3h 48min ago
  Process: 2935 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
 Main PID: 2943 (sshd)
   CGroup: /system.slice/sshd.service
           ââ2943 /usr/sbin/sshd -D

[root@thanatos ssh]#

[root@merope sysconfig]# ssh eider@thanatos
The authenticity of host 'thanatos (10.80.122.52)' can't be established.
RSA key fingerprint is 4d:f2:7f:ae:70:00:ed:67:d2:ce:b4:53:84:e6:a5:df.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'thanatos,10.80.122.52' (RSA) to the list of known hosts.
eider@thanatos's password:
Last login: Thu Jun 19 16:40:36 2014 from merope
[eider@thanatos ~]$



No comments:

Post a Comment

About Me

My photo
Leitor Compulsivo e Apaixonado