I need to restrict access to 1 of my linux servers . so i added to my "authorized_keys" file before the key :
no-pty ssh-rsa ..............
I disabled the password access to this machine from couple of ip's
In the seconds server that running ansible i need to success "Deploying" to the restricted server .
i need to know how i can permit couple of commands :
rsync scp Also i would like to disable the option to run commands to the restricted server like that :
ssh ***.***.***.*** | bash "date"
So once i'll run the ansible playbook i will be able to rsync / scp files to the restricted server
how can i do that ?
Thanks a lot ! Amit