Answer the question
In order to leave comments, you need to log in
How to run another sshd on the same server?
Good afternoon,
There was a need to run another sftp installation on one RH server.
How to competently clone and run it on a different port without breaking the main sftp.
Different package versions on different ports.
Answer the question
In order to leave comments, you need to log in
vi /etc/ssh/sshd_config
port 22
port 2222
rc-service sshd reload
Take the sshd unit file, most likely it will be /lib/systemd/system/sshd.service
Copy it to, for example, /etc/systemd/system/sshd_new.service
In the resulting file, write the path to the new executable file, where it lies , and config (in which a different port must be specified), like this:
Save the file, then as root:
systemctl daemon-reload
systemctl enable sshd_new
systemctl start sshd_new
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question