我想在我的系统(Ubuntu 14.04 x64)上设置一个用户,以便人们可以运行ssh [email protected]并查看某个程序的某些输出,而不需要提示input密码或者必须具有ssh密钥。 以下是我迄今为止所做的:
adduser example --shell /path/to/my/program创build了我的程序的example用户 /home/example/.hushlogin创build一个空文件来/home/example/.hushlogin motd和其他login消息 事情正在处理的例外,我必须完成密码提示authentication的挑战,我想绕过,因为这将是一个公众可用的服务。
大概自定义/etc/pam.d下的PAMconfiguration可能会诀窍,但我需要一些指导的细节。 我希望此更改只影响此特定用户帐户,而不是系统上的每个帐户。
在/etc/ssh/sshd_config设置PermitEmptyPasswords yes ,然后确保用户帐户没有密码。