Configure openssh-server on Mac OS x10.9
Hello,
I want to install and configure 'openSSH-server' on Mac OS X 10.9
As I realized openSSH-server was preinstalled, and It runs:
"System Preferences" - "Sharing & Permissions" click on "Remote login".
Everything is fine, and if I want to change configuration I edit files:
/private/etc/sshd_condif — for ssh-Server.
/private/etc/ssh_condif — for ssh- client.
After that I want to do this using a console (terminal), and I had some troubles:
1) How to do start / stop / restart for sshd daemon (service) using a terminal?
It blew up my brain but I found that:
sshd starts here:
/usr/libexec/sshd-keygen-wrapper — it's a shell script, that creates keys for the server, and than runs:
exec /usr/sbin/sshd ssh-Server.
2)Config files are located in '../etc' , but I would put them to './etc/ssh/'
So, How to change path to config files? Should I 'make install' for bin file?
I see a solution that I don't like - change script '/usr/libexec/sshd-keygen-wrapper' to:
exec /usr/sbin/sshd -f /private/etc/ssh/sshd_condif.
Are there any other solutions?
MacBook Pro with Retina display, OS X Mavericks (10.9), for console (terminal) users