Comment

Comment by quesera

There is also sshpass, which allows non-interactive ssh password auth.

You can provide the password on the command line, or in an environment variable:

  sshpass -p 'PASSWORD' ssh user@host /bin/id
  SSHPASS=PASSWORD sshpass -e ssh user@host /bin/id
Not ideal, but if you're working with inflexible third parties who don't understand public keys, sometimes it's acceptable.

Storing secrets in environment variables is a common practice in many mostly-reasonable orgs.

parent quesera 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton