Posted: . At: 10:31 AM. This was 4 years ago. Post ID: 14365
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to start the SSH server in Venom Linux.


To start the SSH server on a Venom Linux machine, use this command.

bash-5.0# /usr/sbin/sshd

This will start up the SSH server and then you may connect over SSH to your machine.

Edit the /etc/ssh/sshd_config file and make these changes to allow the SSH server to run and allow logins. Allowing root login is pointless, just use sudo instead.

Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
 
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
 
# Ciphers and keying
#RekeyLimit default none
 
# Logging
SyslogFacility AUTH
LogLevel INFO
 
# Authentication:
 
LoginGraceTime 2m
PermitRootLogin prohibit-password
StrictModes yes
MaxAuthTries 6
MaxSessions 10

To enable the SSH server to run on boot with Venom Linux, you must edit the /etc/sv/sshd/run file to look like this.

#!/bin/sh
ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist
[ -r conf ] && . ./conf
exec /usr/sbin/sshd -D $OPTS

As the path is /usr/sbin/sshd and not /usr/bin/sshd.

Then create a symlink in the /etc/runit/runsvdir/default directory named “sshd” that links to the /etc/sv/sshd directory. This will enable the SSH server to run on each boot.

┌─[jason@venom][/etc/runit/runsvdir/default]
└──╼ $ls -hula
total 8.0K
drwxr-xr-x 2 root root 4.0K Jun  1 10:22 .
drwxr-xr-x 4 root root 4.0K Jun  1 10:21 ..
lrwxrwxrwx 1 root root   12 Jun  1 10:13 alsa -> /etc/sv/alsa
lrwxrwxrwx 1 root root   12 Jun  1 10:13 dbus -> /etc/sv/dbus
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty1 -> /etc/sv/getty-tty1
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty2 -> /etc/sv/getty-tty2
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty3 -> /etc/sv/getty-tty3
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty4 -> /etc/sv/getty-tty4
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty5 -> /etc/sv/getty-tty5
lrwxrwxrwx 1 root root   18 Jun  1 10:13 getty-tty6 -> /etc/sv/getty-tty6
lrwxrwxrwx 1 root root   12 Jun  1 10:13 lxdm -> /etc/sv/lxdm
lrwxrwxrwx 1 root root   22 Jun  1 10:13 networkmanager -> /etc/sv/networkmanager
lrwxrwxrwx 1 root root   12 Jun  1 10:22 sshd -> /etc/sv/sshd
lrwxrwxrwx 1 root root   16 Jun  1 10:13 sysklogd -> /etc/sv/sysklogd

This worked very well on my installed system and is easy to do. now the SSH service is running and works just fine.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.