I use Ubuntu server 16.04.1 LTS (Kernel 4.4.0-38-generic x86_64). And Install openssh-server(1:7.2p2-4ubuntu2.1). At first, I use below.
sudo systemctl enable ssh.service
But sshd doesn't start in boot process.
So, I check this Questions -> (SSH Daemon does not autostart)
And try this article -> (http://blog.roberthallam.org/2010/06/sshd-not-running-at-startup)
However, sshd doesn't start. (sudo service ssh status
is dead.)
Of course, I check symbolic link of /etc/rc*.d/S**ssh
is created.
Then I added below to /etc/rc.local
.
/etc/init.d/ssh start
Finally, sshd does start on boot, but I wonder why normally process doesn't work. It might be because using usb wireless adapter, but I cannot be sure that. Please tell me what do you think.
network-online.target
instead ofnetwork.target
- see Linux tip: Force systemd networkd to wait for DHCP - but note that you are probably using NetworkManager not networkd - so the enable command would besystemctl enable NetworkManager-wait-online.service
Running Services After the Network is up – steeldriver Sep 27 '16 at 13:09ListenAddress
ofsshd_config
. So I thought sshd doesn't need specific IP to start service. I thought device initialization is only needed by ssh daemon. – MAD_PEPPER Sep 28 '16 at 13:06network-online.target
approach, but failed to start sshd. And I don't use NetworkManager, but networking daemon. This may be because of version of systemd. systemd message isDependency failed for Wait for Network to be Configured. systemd-networkd-wait-online.service: Job systemd-networkd-wait-online.service/start failed with result 'dependency'
– MAD_PEPPER Sep 28 '16 at 15:39