You are not logged in.

#1 2006-10-04 16:18:11

mdv
Member
From: Poland
Registered: 2005-04-09
Posts: 145

passing ssh password as option

Hi,
is there a possibility to pass ssh pasword as an option, for example I would like to login this way:

ssh root@example.com

but instead of being prompted for a password I want to pass it as an option. Any suggestions?
mdv

Offline

#2 2006-10-04 17:15:47

Ibex
Member
Registered: 2006-03-02
Posts: 135

Re: passing ssh password as option

Maybe Using SSH Keys on the Archlinux wiki is what you're searching for.

Offline

#3 2006-10-04 22:07:07

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: passing ssh password as option

mdv wrote:

Hi,
is there a possibility to pass ssh pasword as an option, for example I would like to login this way:

ssh root@example.com

but instead of being prompted for a password I want to pass it as an option. Any suggestions?
mdv

You can't pass the password over the command-line. If you need to login automagically you need to use ssh keys and ssh-agent.

Offline

#4 2006-10-06 04:53:55

projektdotnet
Member
Registered: 2006-10-06
Posts: 10

Re: passing ssh password as option

another reason not to pass it in the command line (instead of prompt or agent/keys) would be that your bash prompt (IIRC) has a history that is stored in cleartext. If someone got ahold of that they might be able to get your passwords for anything you SSHed into.

That is how Debian did things anyway I am not sure if Arch is different in that respect. I have only been using arch for 1-2 months.

Offline

#5 2006-10-06 05:58:07

mdv
Member
From: Poland
Registered: 2005-04-09
Posts: 145

Re: passing ssh password as option

It should be user's choice if he/she wants to take this risk. I don't like the idea of security forced on me smile.

Offline

#6 2006-10-06 06:06:01

xterminus
Member
From: Tacoma, WA, USA, Earth, Sol, M
Registered: 2005-10-30
Posts: 93

Re: passing ssh password as option

mdv wrote:

It should be user's choice if he/she wants to take this risk. I don't like the idea of security forced on me smile.

then create a ssh key without a password.  That's insecure too wink

Offline

#7 2006-10-06 07:51:01

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: passing ssh password as option

mdv wrote:

It should be user's choice if he/she wants to take this risk. I don't like the idea of security forced on me smile.

Passing passwords in over the command line is an unneccesary feature. Use telnet if you want to be insecure.

Offline

#8 2006-10-06 08:18:58

xterminus
Member
From: Tacoma, WA, USA, Earth, Sol, M
Registered: 2005-10-30
Posts: 93

Re: passing ssh password as option

allucid wrote:
mdv wrote:

It should be user's choice if he/she wants to take this risk. I don't like the idea of security forced on me smile.

Passing passwords in over the command line is an unneccesary feature. Use telnet if you want to be insecure.

Actually, you can use opie or S/KEY and one/time passwords with telnet if you *have* to auth in the open.  But that wont stop someone on your lan from hijacking your session after you've logged in smile

Offline

Board footer

Powered by FluxBB