manin
Posts: 6
Joined: Wed Aug 02, 2017 3:17 pm

SSH Server

Wed Aug 02, 2017 3:35 pm

Hello I want to connect with ssh to raspian but the service fails.

Code: Select all

[email protected]:/etc/init.d$ systemctl status sshd.service
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled)
   Active: failed (Result: start-limit) since Wed 2017-08-02 15:04:30 UTC; 4s ago
  Process: 17754 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=255)
I have googled but I didn't find any solution.

Thank you in advance!!!

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: SSH Server

Wed Aug 02, 2017 4:37 pm

ssh has been disabled by default.
so, in order to use it, you will have to enable it.

viewtopic.php?f=63&t=184204&p=1165500&h ... d#p1165500

https://www.raspberrypi.org/blog/a-secu ... ian-pixel/
headless RPi 3B running from usbhdd.

manin
Posts: 6
Joined: Wed Aug 02, 2017 3:17 pm

Re: SSH Server

Thu Aug 03, 2017 6:53 am

Hello,

ssh is enabled from system preferences. I did the updates from the link you sent, but it is still not working

this is from the auth.log

Code: Select all

[email protected]:~$ grep 'sshd' /var/log/auth.log
Aug  2 14:40:09 raspberrypi dbus[420]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.36" (uid=1000 pid=8555 comm="systemctl start sshd.service ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init splash ")
Aug  2 14:40:19 raspberrypi sudo:       pi : TTY=pts/28 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/service sshd status
Aug  2 15:04:22 raspberrypi dbus[420]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.55" (uid=1000 pid=17700 comm="systemctl start sshd.service ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init splash ")
Aug  2 15:04:28 raspberrypi sudo:       pi : TTY=pts/28 ; PWD=/etc/init.d ; USER=root ; COMMAND=/usr/sbin/service sshd start
Thank you!

nobbit
Posts: 121
Joined: Sun Sep 25, 2011 5:51 pm

Re: SSH Server

Thu Aug 03, 2017 8:41 am

Which operating system? Have you made any changes to any settings since flashing the SD card? Which RPi model? WiFi or Ethernet connection?

manin
Posts: 6
Joined: Wed Aug 02, 2017 3:17 pm

Re: SSH Server

Sun Aug 06, 2017 2:20 pm

I installed raspian again..

Thaks for your help!!!

Return to “Networking and servers”