2 ms·
It should work both ways. I have run sshd locally w/ an sshd_config and I would expect that I can run it standalone. My project was to do a self-contained ssh-
by kodablah 9y ago
It should work both ways.
I have run sshd locally w/ an sshd_config and I would expect that I can run it standalone. My project was to do a self-contained ssh-over-tor setup. So I could have an sshd_config like so:
Port 5678
HostKey /home/myuser/sometempdir/ssh_host_rsa_key
HostKey /home/myuser/sometempdir/ssh_host_dsa_key
HostKey /home/myuser/sometempdir/ssh_host_ecdsa_key
HostKey /home/myuser/sometempdir/ssh_host_ed25519_key
PidFile /home/myuser/sometempdir/sshd.pid
UsePam yes
And run this:
/usr/sbin/sshd -f /home/myuser/sometempdir/sshd_config -E /home/myuser/sometempdir/sshd.log
Whether I run this manually, as a service daemon on the part of the OS, etc should not affect the core piece. For my project, I even considered going as far as statically linking Open SSH and Tor, but never completed it.