Login putty automatically | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Login putty automatically

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2012
radha254 radha254 is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 12 June 2014, 3:59 PM EDT
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Java Login putty automatically

Hi Guys ,

I am using putty.exe file to login to servers . I heard that there is way to save my username and password in putty so that i no need to give my creds while logging into putty . If so please provide me th way to do so .

Please note : I am not talking about keyfile .

Thanks in advance .
Sponsored Links
    #2  
Old 01-09-2012
Skrynesaver's Avatar
Skrynesaver Skrynesaver is offline Forum Advisor  
Grumpy old geek
 
Join Date: Mar 2011
Last Activity: 21 November 2014, 7:04 AM EST
Location: Éire
Posts: 828
Thanks: 20
Thanked 185 Times in 181 Posts
save the hostname as user@hostname to automatically use that username when you activate the session, passwords are not saved in PuTTY, for instant login you do need to use a keyfile.

And for a concise explanation of why read Corona688's post below

Last edited by Skrynesaver; 01-09-2012 at 12:33 PM..
Sponsored Links
    #3  
Old 01-09-2012
admin_xor's Avatar
admin_xor admin_xor is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 8 April 2014, 5:55 AM EDT
Posts: 452
Thanks: 13
Thanked 79 Times in 76 Posts
You need to generate ssh key for password less login. Do this on your UNIX/Linux server:

Code:
ssh-keygen -b 2048 -t rsa

When prompted enter blank passphrase for password less login. Public key goes into ~/.ssh directory as id_rsa.pub and private key goes as id_rsa. You need to copy the id_rsa.pub file and save as authorized_keys in the same directory.

Code:
cd ~/.ssh
cp id_rsa.pub authorized_keys

Now, get the private key id_rsa onto your Windows machine and conmert it to putty compatible key using PuTTYGen.exe. You need to save the .ppk file and use it with PuTTY to get authenticated without using password. All these are because OpenSSH does not support PuTTY keys.

Check the PuTTY documentation page for more info.
    #4  
Old 01-09-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 22 November 2014, 10:03 AM EST
Location: Saskatchewan
Posts: 19,905
Thanks: 845
Thanked 3,415 Times in 3,200 Posts
Quote:
Originally Posted by radha254 View Post
Please note : I am not talking about keyfile.
Keys were designed to handle this situation, and password logins are designed to prohibit this situation. ssh -- and most authentication systems -- go to some length to ensure a real human is typing the password, not a machine. Third-party cracking utilities are required to accomplish password bruteforcing in UNIX. Shoehorning it into a graphical login in Windows is even more difficult.

"Interactive password authentication" is supposed to mean "Password typed by a human being in realtime authentication" and nothing else will do.

Last edited by Corona688; 01-09-2012 at 12:08 PM..
The Following User Says Thank You to Corona688 For This Useful Post:
Skrynesaver (01-09-2012)
Sponsored Links
    #5  
Old 01-09-2012
radha254 radha254 is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 12 June 2014, 3:59 PM EDT
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by Corona688 View Post
Keys were designed to handle this situation, and password logins are designed to prohibit this situation. ssh -- and most authentication systems -- go to some length to ensure a real human is typing the password, not a machine. Third-party cracking utilities are required to accomplish password bruteforcing in UNIX. Shoehorning it into a graphical login in Windows is even more difficult.

"Interactive password authentication" is supposed to mean "Password typed by a human being in realtime authentication" and nothing else will do.
cool , Thanks man . you rocks . Everywhere I am getting impresses by your responses kewl , you rock .
Sponsored Links
    #6  
Old 01-09-2012
Ygor's Avatar
Ygor Ygor is offline Forum Advisor  
Advisor
 
Join Date: Oct 2003
Last Activity: 10 November 2014, 6:18 PM EST
Location: 54.23, -4.53
Posts: 1,801
Thanks: 1
Thanked 112 Times in 98 Posts
It is possible to have automatic logins using a combination of WinSCP and PuTTY.

Create a session in WinSCP and save with password (not recommended).

Change WinSCP application integration preferences:
- Provide path to PuTTY.exe
- Remember session password and pass it to PuTTY
- Automatically open new sessions in PuTTY.

When you now open the saved session, you get both a WinSCP window and a PuTTY window, without typing username or password.
Sponsored Links
    #7  
Old 05-25-2012
radha254 radha254 is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 12 June 2014, 3:59 PM EDT
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Hello All ,

I am repoening the case , I created keyfile and its working well and good for all , except for AIZ boxes . Now i am looging into server as :

Code:
 ssh -o PubkeyAuthentication=no uid@server 

. Please help me , how to overcome 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
can't login via GUI but can via Putty lramsb4u UNIX for Dummies Questions & Answers 4 06-03-2011 05:13 PM
SSH client (putty) hangs after name/password login AshleyK UNIX for Dummies Questions & Answers 1 12-12-2010 04:02 PM
Putty Login - with Batch? swame_sp UNIX for Dummies Questions & Answers 3 09-15-2009 11:53 PM
Can't login through putty arrs UNIX for Dummies Questions & Answers 1 11-10-2008 11:02 AM
resticting user to login using putty on port 21(ftp) manoj.solaris Linux 2 10-25-2008 12:01 PM



All times are GMT -4. The time now is 10:02 PM.