Article 6J7AQ ssh authorized_keys command= does not work

ssh authorized_keys command= does not work

by
ario
from LinuxQuestions.org on (#6J7AQ)
Hi Folks,
On the internet there are numerous articles and forums topics talking about adding a line like:
Code:command="/usr/bin/ls" <ssh-key-here>To the file:
Code:$HOME/.ssh/authorized_keysAnd it will supposedly limit the command that the user can run.
Well it didn't!
So I can ssh from my client to the server when my authorized_keys file is like:
Code:<ssh-key-here>And cannot login when it is like:
Code:command="/usr/bin/ls" <ssh-key-here>The error is:
Code:server.address.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).Notice that the whole stack of network, operating system, ssh, configuration, keys, permission, etc works properly, UNTIL I add the command= to the beginning of the line. Then it does not work.
Please help. Thanks in advance.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments