Forzare l'autenticazione via password con ssh

From RVM Wiki
Revision as of 12:24, 12 June 2014 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Per collegarsi in ssh NON usando la chiave privata anche se presente o cachata dall'agent:

 ssh \
    -F /dev/null \
    -o PubkeyAuthentication=no \
    -o ControlMaster=no \
    -o UserKnownHostsFile=/dev/null \
    -o StrictHostKeyChecking=no \
    hostname

È importante usare anche la prima opzione -F altrimenti le impostazioni del file ~/.ssh/config verranno considerate.

Riferimenti