I want to use the
AuthorizedKeysCommand as a test on my server.
1. Added the line
AuthorizedKeysCommand /etc/ssh/myScript.sh to the end of the file.
2. Created a script
myScript.sh in the
/etc/ssh/ location that contains:
#!/bin/bash echo "Hello world";
This script has permissions 755 and is owned by root with group set to sshd.
- Tried to restart the
SSHDdaemon by running:
sudo systemctl restart sshd
sshd does not restart and exits. The error code too is not clear and does not go away until the
AuthorizedKeysCommand is removed.
Where am I going wrong?
I am running SSH version:
OpenSSH_6.6.1p1 OpenSSL 1.0.1e-fips 11 Feb 2013 on a