commun:second_ssh_server_for_sftp
Ceci est une ancienne révision du document !
Second SSH server
Création d'une unité systemd
sudo cp /etc/systemd/system/sshd.service /etc/systemd/system/sshd-second.service
- sshd-second.service
[Unit] Description=Second OpenBSD Secure Shell server After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service] EnvironmentFile=-/etc/default/ssh ExecStartPre=/usr/sbin/sshd -t ExecStart=/usr/sbin/sshd -f /etc/ssh/sshd-second_config -D $SSHD_OPTS ExecReload=/usr/sbin/sshd -t ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartPreventExitStatus=255 Type=notify RuntimeDirectory=sshd RuntimeDirectoryMode=0755 [Install] WantedBy=multi-user.target Alias=sshd-second.service
commun/second_ssh_server_for_sftp.1537604775.txt.gz · Dernière modification : (modification externe)
