How to Install Openssh on Windows with public key authentication

preview_player
Показать описание
This video show how to install openssh on windows and setup public key authentication.
This makes the assumption you already have your public key to hand and know how to generate keys.

A complete list of commands can be found on github in the link below.
Don't forget to change the public key to yours.

Follow us on
Рекомендации по теме
Комментарии
Автор

flawless. I've spent the whole day trying to sort out why native windows ssh server settings just won't work for me. Thanks for this man, very much appreciated!

Lannnister
Автор

This has been driving me nuts all day. Now I can do VS Code remote development on my more powerful PC from my MacBook. Thanks!

drbarnack
Автор

OMG! YOU'RE MY HERO!!! Had stuck at connecting to my window with pubKey but keep getting permission denied (publickey) even though i added my client public key into authorized_keys file. End up the missing key is the encoding part

lsping
Автор

this was a big help moving from Linux into the windows world thanks.

JamesT
Автор

Great tutorial, simple and to the point.

thomass
Автор

Thank you a lot! I've fixed my mistake.

xukguvk
Автор

Made it so so simple, much appreciated.. Thank You!

vijaynimbakkanavar
Автор

This is now a little bit outdated video because openssh has been added to Windows 10 recently. Client is enabled right away, so you can ssh into a remote server from Windows without using putty (and yes, you can use ssh keys as well), server needs to be installed, but that can be easily done from settings. Then what you need is just run the openssh server service and you can then remotely access your Windows machine. Linux users may know command ssh-copy-id - that's unfortunately Linux exclusive, Mac and Windows don't have that installed with openssh client. Mac can install ssh-copy-id with homebrew however, Windows doesn't seem to have that sort of option. You can still use piping or scp command.

CZghost
Автор

great guide
you might want to add a link to a guide explaining ssh public and private keys

muhammadaman
Автор

There is one step missing that video, it's enabling sshd to use passwordless logins, go to %programdata%\sshd_conifg file. This file has to be with following option enabled: "PubkeyAuthentication yes"

mizdebsk
Автор

Would you be able to add on to this video with private keys?
I'd like it setup so that once a SSH server is setup, only a device with a private key can connect in conjunction with password.
Is that within the same scope?
Thanks for the straight forward video though !

MrWoot
Автор

after doing all these steps to connect from kali linux to windows I am still getting a permission denied any suggestions?

victorfigueroa
Автор

i didn't understood how the public key works what do i have to do to connect from an other device copy it or what ??

vattoxonfire
Автор

How do you make the scp behave the same...?

rafaelrio
Автор

Hi Nice Tutorial. I followed everything step by step but getting error "Permission denied (publickey, keyboard-interactive)" while trying to connect. Any suggestions?

chiragmittal
Автор

in 7:17 can we create own public key with ssh-keygen command? i still confuse with source your copy public key. thanks

aguspije
Автор

very nice info. tnq u. works fine for me when i used like this for connection from linux to windows

Mahesh-gqfm
Автор

you didnt made any configuration change on client linux machine . it needs to have a paired key ?

tavir
Автор

Is it mandatory to have 64bit system, I'm trying on 32bit machine its just not working. Did anyone tried on 32bit machine

Rvrs_shll
Автор

Thanks for the video.I followed the same steps and it did work for a day and then facing below error. Can you please help on that.


permission denied (publickey keyboard-interactive) windows

goelashish