mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-05-23 10:17:43 +03:00
added a note to create the systemd config file
parent
a7e9322666
commit
54a5f4c372
@ -73,8 +73,7 @@ $ sudo ln -sf /opt/ssh-chat/ssh-chat /usr/local/bin/ssh-chat # creates a
|
||||
$ sudo ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa # generates a key/fingerprint for your server
|
||||
$ sudo sed -i -e '/^Port/s/^.*$/Port 2222/' /etc/ssh/sshd_config # ensures that system sshd runs on port 2222
|
||||
$ sudo service ssh restart # restarts sshd (now on port 2222)
|
||||
$ sudo mv /home/ubuntu/ssh-chat.service /etc/systemd/system # moves systemd config into systemd system folder
|
||||
$ sudo chown root.root /etc/systemd/system/ssh-chat.service # sets permissions of systemd script
|
||||
- create /etc/systemd/system/ssh-chat.service based on the instructions above
|
||||
$ sudo systemctl daemon-reload # restarts systemd daemon
|
||||
$ sudo systemctl enable ssh-chat # ensures ssh-chat will start up after a reboot
|
||||
$ sudo systemctl start ssh-chat # starts the ssh-chat daemon
|
||||
|
Loading…
x
Reference in New Issue
Block a user