Visit Our UNIX and Linux User Community


Login putty automatically


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Login putty automatically
# 1  
Old 01-09-2012
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 .
# 2  
Old 01-09-2012
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..
# 3  
Old 01-09-2012
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
Quote:
Originally Posted by radha254
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..
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 01-09-2012
Quote:
Originally Posted by Corona688
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 . Smilie
# 6  
Old 01-09-2012
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.
# 7  
Old 05-25-2012
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 

Smilie . Please help me , how to overcome this ?

Previous Thread | Next Thread
Test Your Knowledge in Computers #815
Difficulty: Medium
In CSS, E[foo] matches an E element with a 'foo' class name.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Able to ping the server but not able to login through putty it says network timeout

Able to ping the server but not able to login through putty it says network timeout Please assist (3 Replies)
Discussion started by: Vishal_dba
3 Replies

2. Shell Programming and Scripting

Some automatic process to login in putty. install some patch

Hello, I was wondering, we have multiple servers where we login from Putty. Is there some way we get automatically loged in after giving server name and password(by saving it in some file or like that) Just a thought (2 Replies)
Discussion started by: mirwasim
2 Replies

3. Ubuntu

Login from putty in wndows7 to connect ubuntu machine

hi, i have ubuntu installed on windows 7. I am trying to connecting to ubuntu from windows 7 using putty but it is giving network problem. I am trying to connect with ip address Thanks (9 Replies)
Discussion started by: diehard
9 Replies

4. UNIX for Dummies Questions & Answers

Putty Auto Login

Hello All , Requiremnt : i want to login to putty automatically and change the settings like i want , for ex : changing the "lines of scrollback" , " under colors , want to check to checkmark the option use system colors" . Like this i want to do . I have a bash file created to login . But... (2 Replies)
Discussion started by: radha254
2 Replies

5. UNIX for Advanced & Expert Users

Unix user with root power problem in to login in putty

Hello, I created a user in my AIX 5.3 system and i modified /etc/passwd file in and assigned this user the uid=0 like root user. The problem is that when this user log into the system through putty it asks for root password instead of the user password. As a result of this, if i reset the... (4 Replies)
Discussion started by: omonoiatis9
4 Replies

6. Fedora

can't login via GUI but can via Putty

Hi all, I am able to login via putty to a fedora 10 workstation. But when i try to login via physical screen connected to workstation, it just gives me a blank screen and i cant see any options to enter username and passwd. How do i get the physical GUI to work. $ who -r ... (4 Replies)
Discussion started by: lramsb4u
4 Replies

7. Windows & DOS: Issues & Discussions

Batch file to login to putty and list directory

I've created a .bat file with this line: start C:\USERS\Putty\putty.exe -ssh user@server.com -pw password That opens a putty session and logged in it with the user and password i've already specified. But now, I want to enter a simple command like "ls -l" for example.. How can I do that? I've... (3 Replies)
Discussion started by: nirmal.mukundan
3 Replies

8. UNIX for Dummies Questions & Answers

Putty Login - with Batch?

Hello Everybody, I have a question on the UNIX server login with putty. Can this login procedure into PUTTY be automated with a macro or vbs or batch file? Kindly help me in directing me for the above. Thanks for the help, Regards, (3 Replies)
Discussion started by: swame_sp
3 Replies

9. UNIX for Dummies Questions & Answers

Can't login through putty

I am changing root password by passwd. Now I can directly log into the system but I can not log in using puttytel. It will show an error "Incorrect Password":rolleyes: (1 Reply)
Discussion started by: arrs
1 Replies

10. Linux

resticting user to login using putty on port 21(ftp)

Hi, I am having small query and wheather it is possible ? that user can transfer the files using ftp client examples (filezilla) , but he can not use putty to login using ftp and run the commands, Regards, Manoj (2 Replies)
Discussion started by: manoj.solaris
2 Replies

Featured Tech Videos