29. Multi argument 対応 sshdはなにができる
• Linuxのpasswdで設定されているshellの複数引数を有効にしたsshd
– man 5 sshd より
• /etc/passwd contains one line for each user account, with seven fields
– delimited by colons. These fields are:
» login name
» optional encrypted password
» numerical user ID
» numerical group ID
» user name or comment field
» user home directory
» optional user command interpreter ←ここを複数引数対応にする
– 例えば以下のように記述
• azureuser:x:1003:1003:Ubuntu:/home/azureuser:/bin/bash
• kekekekenta:x:1000:1000:,,,:/home/kekekekenta:/usr/bin/docker exec
{docker_tty} containername /bin/bash
• Blogはこちら、https://qiita.com/kekekekenta/items/2fdbae3afc4670674ddc
• ソースコードはこちら、 https://github.com/KentaroAOKI/openssh-portable
29