OVH Cloud OVH Cloud

openssh pour windows

1 réponse
Avatar
GG²
Bonjour,

J'ai un installé Openssh sous windows et je souhaiterais savoir comment
empecher l'exécution de commandes (dir, c: etc...) lorsque l'on fait un ssh
en tant qu'utilisateur sans privilèges sous windows ?

Merci d'avance de votre réponse

GG

1 réponse

Avatar
Mollo
In article <dclo31$8vc$, says...
Bonjour,

J'ai un installé Openssh sous windows et je souhaiterais savoir comment
empecher l'exécution de commandes (dir, c: etc...) lorsque l'on fait un ssh
en tant qu'utilisateur sans privilèges sous windows ?


Windows je sais pas..

mais j'ai vu ça :

(Contributed by Boris Goldowsky)
A: Yes, you can, SSH allows you to do the following. In your
authorized_keys2 file, add the something like this:

from="IP ADDRESS",command="/usr/local/bin/command",
no-port-forwarding,no-agent-forwarding,no-X11-forwarding ssh-rsa
AAAAB3NzcC1y.....

Where IPADDRESS is the address from which you connect, it can contain
wildcards: 10.0.0.* is valid.
And where HOST is the host you're backing up remote.

If your key is now compromised they can only use it to run 'hdup'

Ciao'
Mathieu