Operating System - HP-UX
1826123 Members
4487 Online
109690 Solutions
New Discussion

rsa key with command option in authorized_files

 
Thomas Moersch
Occasional Advisor

rsa key with command option in authorized_files

Hi,
I am trying to restrict an rsa key to be used for scp only by specifying the "command" option in the authorized_keys file. e.g.:
command="/usr/bin/scp" ssh-rsa AAAAB3NzaC . . .
This works fine when specifying
command="/usr/bin/ls" ssh-rsa AAAAB3NzaC . . .
It lists the contents of the remote user's home and disconnects. But when I use the "/usr/bin/scp" option it replies with the usage syntax.
Here is what I typed:
scp testdata orion:~
The same command works flawlessly with the command option removed from the key in the authorized_keys file.
Anybody? ;-)
Thanks in advance.
Thomas