Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to configure SSH Password less between Windows Server and Linux Server?

How to configure SSH Password less between Windows Server and Linux Server

user-image
Question ajoutée par Ayman Ali Sharara , System Administrator , IDEMIA Security & Identity - Abu Dhabi
Date de publication: 2017/11/10
Tawfiqur Rahman
par Tawfiqur Rahman , Head Of IT , Kazi Group

Step 1: Generate SSH Key Pair 

Step 2: Upload Public Key to Remote Server (either linux or windows).

 

"SSH Key Pair" is the way to SSH Password less login both for windows server & linux server 

higinio ongcoy
par higinio ongcoy , Senior Civil Engineer , ILF Consulting Engineers

not interested because out of scope to my job.

Muhajed Ibrahim
par Muhajed Ibrahim , IT Manager,support,helpdesk,servicedesk,onsite , Pwc - Sweden,Studemaskolan

  1. Generate an SSH key pair on the Windows server using an SSH client such as PuTTYgen or OpenSSH. This will create a public key and a private key.

  2. Copy the public key to the Linux server. You can do this by using the SSH client to connect to the Linux server and manually adding the public key to the authorized_keys file in the user's home directory. You can also use a tool like ssh-copy-id to automate this step.

  3. Test the SSH connection to make sure the passwordless authentication is working. You should be able to connect from the Windows server to the Linux server without being prompted for a password.

 

  1. Generate an SSH key pair on the Windows server:
  • Open an SSH client such as PuTTYgen or OpenSSH on the Windows server.
  • Click the "Generate" button to create a new key pair.
  • Save the private key to a secure location on the Windows server.
  • Copy the public key to the clipboard.
  1. Copy the public key to the Linux server:
  • Use an SSH client such as PuTTY or OpenSSH to connect to the Linux server.
  • Create an authorized_keys file in the user's .ssh directory if it does not already exist: mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys
  • Paste the public key into the authorized_keys file: echo "ssh-rsa <public key>" >> ~/.ssh/authorized_keys
  • Set the correct permissions on the authorized_keys file: chmod ~/.ssh/authorized_keys
  1. Test the SSH connection:
  • Open an SSH client such as PuTTY or OpenSSH on the Windows server.
  • Enter the IP address or hostname of the Linux server and the username you configured for passwordless authentication.
  • Connect to the Linux server. You should be able to do so without being prompted for a password.
  • BE adviced not recomended from a security stand point 

Pramod Garwan
par Pramod Garwan , Software Developer , proglogix research and development pvt ltd

Step 1: Generate SSH Key Pair 

Step 2: Upload Public Key to Remote Server (either linux or windows).

AbdelAziz Sharaf
par AbdelAziz Sharaf , DeovOps Developer , Khamsat.com | خمسات

- ssh from the host (server you want to start connection from) to the guest (server you wanna log in into)

> if both then do this twice with both servers)

 

- you may add the server to known hosts at first log in

> a prompt will ask you if you wanna do that.. just type yes

 

- other way is to assign a key pair verification or public and private key

you'll need a past log in

generate your key using `ssh-keygen` and assign it from host to guest using `ssh-copy-id`

be careful if you have multiple keys this may assign all keys to your server so either move them until you assign your wanted key or assign your private key directly into your guest .ssh/authorized_keys file as one line

MD Amran
par MD Amran , System Developer , Human Capital Group WLL

To configure passwordless SSH between a Windows Server and a Linux Server, generate an SSH key pair on the Linux server, install OpenSSH on the Windows server, configure the SSH server, copy the Linux server's public key to the Windows server, and test the connection.

Ashvini Chavan
par Ashvini Chavan , Intern , Technohacks Edutech

  • Generate SSH Keys on Windows Server.
  • Add Public Key to Linux Server.
  • Test Passwordless SSH Login.

Fathi Alsanea
par Fathi Alsanea , Field IT/OT Supervisor , OMV Yemen

Each system has its own way of working
And the jobs assigned to it's system, both of them wonderful and they perform the tasks that were assigned to each

Dipok Ahmed
par Dipok Ahmed , IT Officer , BPMC

As an AI, I don't have personal preferences, but I can provide insights into the differences between Windows and Linux as server operating systems. Both Windows Server and Linux have their strengths and weaknesses, and the choice often depends on the specific needs of the organization and the nature of the workload. Here are some factors to consider: Cost: Linux distributions are typically open-source and free to use, whereas Windows Server requires a license, which can incur additional costs. For organizations with budget constraints, Linux may be a more cost-effective option. Flexibility and Customization: Linux offers greater flexibility and customization options compared to Windows Server. With Linux, users have access to the source code and can modify it to suit their specific requirements. This flexibility is particularly advantageous for users with specialized or unique server configurations. Security: Both Linux and Windows Server can be secured effectively, but Linux is often perceived to have stronger security features. Linux's open-source nature allows for more frequent security updates and patches, and its robust permission and access control mechanisms provide additional layers of security. Compatibility: Windows Server is well-suited for environments that rely heavily on Microsoft technologies and applications, such as Active Directory, Microsoft Exchange, and SharePoint. If your organization primarily uses Microsoft products, Windows Server may offer better compatibility and integration. Ease of Use: Windows Server is known for its user-friendly interface and intuitive management tools, making it easier for administrators to set up and manage servers, especially for those with a background in Windows environments. Linux, on the other hand, has a steeper learning curve for users who are less familiar with command-line interfaces and Unix-based systems. Performance: Linux is often preferred for its lightweight nature and superior performance in high-load and resource-intensive environments. It is commonly used for web servers, databases, and cloud computing platforms due to its efficiency and scalability. Ultimately, the choice between Windows Server and Linux depends on a variety of factors, including budget, technical requirements, familiarity with the operating system, and compatibility with existing infrastructure and applications. Many organizations opt for a hybrid approach, leveraging both Windows and Linux servers to meet different needs within their IT environment.

Saeed Gholipour
par Saeed Gholipour , IT Network Specialist , Informatica Systemhaus Rücker GmbH

  1. Generate an SSH key pair on the Windows server/Linux Server using an SSH client Softwares.
  2. Copy the public key to the Windows server/Linux Server.

Zead Hossan
par Zead Hossan , Business Analyst , Ministry Of Health - Other

  1. Step 1: Verify SSH Server is Running.
  2. Step 2: Generate SSH Key Pair.
  3. Step 3: Upload Public Key to Remote Server. Option 1: Upload Public Key Using ssh-copy-id Command. Option 2: Upload Public Key Using cat Command.
  4. Step 4: Log in to Server Without Password.

More Questions Like This