0

I have fresh installed Manjaro version 17. Then I install OpenSSH, My aim is to start SSH on boot. SO I did below

sudo pacman -Sy openssh
sudo systemctl start  sshd.service
sudo systemctl enable  sshd.service

I enable Firewall too, at every boot I have to login to system than only I can connect to SSH. I also enable

sudo systemctl start sshd.socket
sudo systemctl enable sshd.socket

But still same. I am using Wifi and I feel that until I login my wifi is not connecting and it is not getting IP due to that SSH is not work.

enter image description here

Kindly somebody help me.

jasonwryan
  • 71,734
  • 34
  • 193
  • 226
Milind
  • 111
  • 1
  • 2
  • 6
  • What errors you get? Do you have encrypted home? Do not enable both `sshd.service` and `sshd.socket`. They conflict each other and `systemd` is not able to cope with that. – Jakuje Jul 16 '17 at 08:09
  • Connection time out from SSH – Milind Jul 16 '17 at 11:13

1 Answers1

2

You should use netctl. It is the Arch Linux built in network management system. If it isn't already installed (it should be though), run pacman -Syu netctl then look in /etc/netctl.

There are example configuration files in /etc/netctl/examples. To use an example, just copy it to /etc/netctl and edit it to fit your set up. So for your case, run cp /etc/netctl/example/wireless-wpa /etc/netctl/somedescriptivename then edit /etc/netctl/somedescriptivename to fit your set up.

To enable auto configuration of your wireless networks with systemd, make sure the wpa_actiond package is installed and enable the service: systemctl enable [email protected]

For more information please refer to the Netctl wiki entry.

From : https://unix.stackexchange.com/a/83108/237568

Hunter.S.Thompson
  • 8,839
  • 7
  • 26
  • 41