LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2023, 06:10 PM   #1
LEON71
Member
 
Registered: May 2018
Location: Canada
Distribution: Fedora 38 Workstation
Posts: 87

Rep: Reputation: Disabled
SSH To Windows Using Public Key


I have a Fedora Workstation 39 host machine with Oracle VirtualBox 7 installed.I've created a virtual machine running Windows Server 2022 using Oracle VirtualBox. I can successfully ping the Windows Server from the Fedora Linux host machine using SSH, demonstrating basic connectivity.

However, the challenge arises when attempting to establish passwordless authentication using public key. Despite following various tutorials from YouTube and other sources, the passwordless authentication setup is not functioning as expected. The objective is to SSH into the Windows Server 2022 virtual machine from the Fedora host without being prompted for a password.

any help will be highly appreciated.
 
Old 12-13-2023, 06:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,638

Rep: Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966
Quote:
Originally Posted by LEON71 View Post
I have a Fedora Workstation 39 host machine with Oracle VirtualBox 7 installed.I've created a virtual machine running Windows Server 2022 using Oracle VirtualBox. I can successfully ping the Windows Server from the Fedora Linux host machine using SSH, demonstrating basic connectivity.

However, the challenge arises when attempting to establish passwordless authentication using public key. Despite following various tutorials from YouTube and other sources, the passwordless authentication setup is not functioning as expected. The objective is to SSH into the Windows Server 2022 virtual machine from the Fedora host without being prompted for a password.
You are, again, asking for help with a Windows server; this is not Linux related. Asking on a Linux forum about Microsoft Windows problems isn't going to get you a lot of help...however, if you searched for things like "windows server 2022 passwordless" you'd find things like:
https://learn.microsoft.com/en-us/wi..._keymanagement

...a guide from Microsoft about such things. How you get Microsoft to accept your key and where you store it on Windows is a Windows question. Have you tried using the fairly standard ssh-copy-id command on Linux???
 
1 members found this post helpful.
Old 12-14-2023, 05:28 AM   #3
LEON71
Member
 
Registered: May 2018
Location: Canada
Distribution: Fedora 38 Workstation
Posts: 87

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
You are, again, asking for help with a Windows server; this is not Linux related. Asking on a Linux forum about Microsoft Windows problems isn't going to get you a lot of help...however, if you searched for things like "windows server 2022 passwordless" you'd find things like:
https://learn.microsoft.com/en-us/wi..._keymanagement

...a guide from Microsoft about such things. How you get Microsoft to accept your key and where you store it on Windows is a Windows question. Have you tried using the fairly standard ssh-copy-id command on Linux???

Thanks for the help. I have tried this support article Key-based authentication in OpenSSH for Windows
without any luck. I have also followed this video : SSH To Windows Using Public Key. But unfortunately its also not working. May be its something to do with my host machine. I have multiple authentication key in my ssh folder. I guess I might have to edit the config file. I will keep trying. Thanks for your suggestions.
 
  


Reply

Tags
fedora, linux, ssh access using key



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH giving server refused public-key signature despite accepting key linuxisnew2me Linux - Security 6 09-19-2022 01:48 PM
LXer: Passwordless SSH login using public key and private key LXer Syndicated Linux News 0 02-23-2020 06:42 PM
Best way to verify files using public key remotely using SSH guardian1 Linux - Server 2 08-20-2012 10:13 AM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
Putty/SSH login failed when using RSA public key: 'Server refused our key' itsecx@gmail.com Linux - Server 10 10-04-2010 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration