Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to SSH Login Using PuTTY without Typing Username

June 29, 2024
in Blog, PuTTY
0
ADVERTISEMENT

Table of Contents

SSH Login Using PuTTY without Typing Username

In this post, how to SSH login using PuTTY without typing username. As you can see, by default, you need to type the username for login every time starting a connection.

1. From the session setting, we can bypass the username prompt when connect. Open PuTTY and select a session (which is usually highlighted) or any your saved session. Then click on Load.

vpY0WkvZDt9g9ObLE8kp5kszHY0hZtTFRHEAvZfllOrcawmUVWGwiUK1FH9W

2. Click the Data option under the Connection. Then enter your auto-login name in the box. In this example the login name is azureuser.

HMDqCRJR35M7QR9mO6gXLJqNUTAOPoxqOVsnmQr6Tpztc2ONYSGezMkYVeB5

3. After configuring the login name, you need to:

  1. Select the Session option under the Category.
  2. Select a saved session in the saved session list. For example, select the ubuntu session.
  3. Select the Save button in the right side.
Note Note: This step is very important, if you don't select the session and click Save. The changes won't save and the next time when you open a remote connection, everything will be reverted by default.
xPhneAEEDHU4GrAdr5FBt0fHDIPxMYblFGQRnd6mIlMjM2ftoxoCePzlI6Kz

In the next times, when you connect to the server, the username specified is now passed along automatically without you having to type it in. All you need to do now is to the type in the password.

tz88mrSrIDpeyGYE1gyKD9qAMdm75vOVQqMRknNcErB8E2fh1IzQx6GxXczk

Key-based authentication

In some cases, you want to bypass both username and password for authentication. We can use the key-based authentication method. It’s more secure and is the recommended method for SSH login.

Generate Keys

1. We start the configuration at the client Windows computer. Download the latest version PuTTY Key Generator from the below link:
  • PuTTYGen: https://the.earth.li/~sgtatham/putty/latest/w64/puttygen.exe

Note: If you’ve installed PuTTY on your computer. The PuTTYGen already exist in C:\Program Files\PuTTY.

2. Using the PuTTYGen tool we have to generate an authentication key. This key will serve as a substitute for the password that will be entered during login.

GlRGyImP0kBgGkNU0xr3sBzQs3HnzQtTIARR1JaK7DIXdMA5gUKNSUOv5vQT

3. Leave the default selections and click on the button. The following window opens. Move mouse randomly over the empty space below the progress bar to create some randomness in the generated key.

4. You don’t enter any key phrase. Let’s click on Save private Key button. Click Yes on the window asking for confirmation for saving the key without a password then save the key file to a safe location.

5. Now, copy the public key then save it into a text file for later uses.

Configure the Linux server

1. Close PuTTYgen and open PuTTY then connect to the remote system using the user you want to use for future with password prompt. This time when you login, you have to provide the password at the prompt. Future logins won’t require this password.

2. Under the logged in user’s home directory create a directory named ~/.ssh using the following command:

mkdir ~/.ssh

3. Enter the below command to giving users (owners) read, write and execute permissions.

chmod 700 ~/.ssh

4. Now, create an empty text file named authorized_keys using your favorite text editor.

nano ~/.ssh/authorized_keys

5. Paste the contents of the public key that you’ve saved in the previous step into authorized_keys file, then save and close the file.

Note Tip: To save and close the file in nano editor, press > followed by > and then

6. Assign permissions only for the owner using the following command:

chmod 600 ~/.ssh/authorized_keys
RUL44yKalsw3Dp4TRgzcfjHQIF35tRw2QcvcqsXUDb4PwqMGfWvbGQRB6B2r

Finally, type exit to close the SSH connection.

Configure the PuTTY client

Now we have configured SSH server, it’s time to test our setup. 

1. On the client system, open PuTTY. From the left navigation, select Connection > Data. Enter the username as Auto-login username on the right panel.

2. Again from the left navigation menu, scroll down and expand Connection > SSH > Credentials. Enter the path of the saved private key file (In our case C:\privkey.ppk ). Leave other defaults as such and press Open button.

Now the PuTTY connects to the remote SSH server and there won’t be any password prompt.

QFbAt8DpRE1YFf1QAj7wqY9oRp4fY0AnAgMbsOHRuJpBDikggNkxVQo61GJc
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Fix Error Unable to Use Key File When Using PuTTY

Next Post

How to Fix Server Refused Our Key in PuTTY SSH

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory