How to disable/bypass passphrase prompt in ssh? | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to disable/bypass passphrase prompt in ssh?

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-07-2013
chidori chidori is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 December 2013, 12:16 PM EST
Posts: 215
Thanks: 51
Thanked 3 Times in 3 Posts
How to disable/bypass passphrase prompt in ssh?

Hi Folks,

I have setup a passwordless connection from my Linux ( source) machine toSolaris ( destination ) machine. I have added passphrase while creating the rsa key. Now problem is each time when i make a connection i have to give the passphrase to make connection. How to override this ?

I have browsed through web pages and found that ssh-agent and ssh-add should be used to fix this. But even when using it i have to enter the passphrase atleast once when i open my session. I want to completely avoid it .

I have tried BatchMode=yes option but that throws an error like below


Code:
[chidori@test ~]$ ssh -o BatchMode=yes dummy@testbox.sol.box
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive).
[chidori@test ~]$

How to overcome this passphrase prompt without going for no passphrase ??

Last edited by chidori; 01-07-2013 at 04:19 PM..
Sponsored Links
    #2  
Old 01-07-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 18 October 2014, 9:20 PM EDT
Location: Saskatchewan
Posts: 19,614
Thanks: 811
Thanked 3,329 Times in 3,118 Posts
Quote:
Originally Posted by chidori View Post
I have browsed through web pages and found that ssh-agent and ssh-add should be used to fix this. But even when using it i have to enter the passphrase atleast once when i open my session.
That's what key passwords are there for. They guarantee that the key cannot be used unless a human is there to authorize it.

There is no backdoor do it. The key is actually encrypted. Without the password, the key is scrambled.

If you don't want to type in a password, create a key without a password.

Last edited by Corona688; 01-07-2013 at 04:31 PM..
Sponsored Links
    #3  
Old 01-08-2013
chidori chidori is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 December 2013, 12:16 PM EST
Posts: 215
Thanks: 51
Thanked 3 Times in 3 Posts
Thanks for the explanation.

I have this strange question in mind . As the pages from google say to add ssh-agent and ssh-add commands in user profile so that ssh agent starts each time you login as user and adds the key.

After this it would be in a prompt which would waiting for passphrase input to be given by user. Can automate this particular step using expect tool ?

I know its security risk but just being curious to know if it can be done via expect / any other tool
    #4  
Old 01-08-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 18 October 2014, 9:20 PM EDT
Location: Saskatchewan
Posts: 19,614
Thanks: 811
Thanked 3,329 Times in 3,118 Posts
Injecting passwords is not so much a "security risk" as "completely forgetting the point". Perhaps save yourself some trouble and just remove the password instead.

I expect you could do it with expect, but don't really see any reason to do so. It's no more secure than not having a password.
Sponsored Links
    #5  
Old 01-08-2013
chidori chidori is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 December 2013, 12:16 PM EST
Posts: 215
Thanks: 51
Thanked 3 Times in 3 Posts
yeah you are right. its better to remove the passphrase anyway just exploring unix features
Thanks for your suggestions on this
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh passphrase issues - Mac OS X Ahab the Eskimo OS X (Apple) 1 07-30-2009 02:15 PM
How can I bypass the Prompt in SFTP pierluigi22 Shell Programming and Scripting 2 04-21-2009 02:05 PM
automated ssh with provision for passphrase farahzaiba Shell Programming and Scripting 3 01-27-2009 03:32 PM
SSH passphrase and Password jOOc Solaris 3 05-16-2007 01:29 PM
passphrase and ssh authentication Minguccio75 UNIX for Advanced & Expert Users 1 01-19-2007 06:27 AM



All times are GMT -4. The time now is 04:12 AM.