LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-25-2005, 08:30 PM   #1
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Can you specift password on SSH command line?


Me again

Is it possible to specify your password on the command line for SSH?

is there a sitch I can add to this? eg ssh -pw 1234 user@hostname
 
Old 07-25-2005, 08:59 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Not with stock openssh.

Also note that anyone else on that system could then see your password during your WHOLE ssh session by running 'ps'.
 
Old 07-26-2005, 03:27 AM   #3
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Matir
Not with stock openssh.

Also note that anyone else on that system could then see your password during your WHOLE ssh session by running 'ps'.
Is it possible to get it to read from a hashed file or something similar?
 
Old 07-26-2005, 04:41 AM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
You might want to look at ssh public key authentication - you can set this up so you do not need a password at all: security is handled by your public / private keys. just search this board for more information on how to set this up.
Once you have done this, to connect to another computer you just ssh othercomputer and you are presented with a shell on the other computer. No further login authentication is needed.
 
Old 07-26-2005, 05:55 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
This should get you started on public-key authentication using SSH.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Password Check jedediah Linux - Security 4 12-09-2004 03:01 PM
Command-line 'adduser': password not hashing Talesin Fedora 0 10-08-2004 08:19 PM
command line to set a password to a new userid myhato Linux - Security 3 08-19-2004 11:46 PM
written command line password generator lepricaun Programming 6 08-11-2004 12:36 AM
going to root without password thru command line amanjsingh Linux - Newbie 6 03-29-2004 11:38 PM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration