Тёмный

How to Install Openssh on Windows with public key authentication 

Tips For IT Pros
Подписаться 3,3 тыс.
Просмотров 25 тыс.
50% 1

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.
github.com/HealisticEngineer/...
Follow us on
Twitter - / tipsforitpros
Facebook - / tipsforitpros

Наука

Опубликовано:

 

10 фев 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@Lannnister
@Lannnister 4 года назад
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!
@JamesT65
@JamesT65 4 года назад
this was a big help moving from Linux into the windows world thanks.
@thomass1152
@thomass1152 4 года назад
Great tutorial, simple and to the point.
@lsping8
@lsping8 4 года назад
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
@vijaynimbakkanavar6573
@vijaynimbakkanavar6573 3 года назад
Made it so so simple, much appreciated.. Thank You!
@TipsForITPros
@TipsForITPros 3 года назад
Glad it helped!
@drbarnack1885
@drbarnack1885 3 года назад
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!
@CZghost
@CZghost 3 года назад
I don't think that will work. Especially when you consider main usage on servers. When you ssh to a server, your shell becomes terminal displaying remote console. If vs code isn't installed on remote machine, you're stuck with whatever is installed there. Even if vs code is installed on both machines, I don't think you can run GUI apps from ssh terminal.
@drbarnack1885
@drbarnack1885 3 года назад
@@CZghost I’ve been using this successfully for a month now, works really well: code.visualstudio.com/docs/remote/remote-overview
@ivaldonascimento
@ivaldonascimento 3 года назад
You save my live..! Thank you!
@user-xu6kg4uv7k
@user-xu6kg4uv7k 2 года назад
Thank you a lot! I've fixed my mistake.
@chiragmittal7864
@chiragmittal7864 4 года назад
Hi Nice Tutorial. I followed everything step by step but getting error "Permission denied (publickey,keyboard-interactive)" while trying to connect. Any suggestions?
@fatimaezzahrabelfadla2494
@fatimaezzahrabelfadla2494 3 года назад
thanks you saved my life
@a.useronly2266
@a.useronly2266 3 года назад
Very nice
@victorfigueroa8067
@victorfigueroa8067 3 года назад
after doing all these steps to connect from kali linux to windows I am still getting a permission denied any suggestions?
@MrWoot101
@MrWoot101 5 лет назад
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 !
@TipsForITPros
@TipsForITPros 5 лет назад
you should be able to do this with simple one line in the sshd_config, to use both. Big disclaimer I've not tried so let me know if that works for you. AuthenticationMethods publickey,password
@mizdebsk
@mizdebsk 4 года назад
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"
@muhammadaman9010
@muhammadaman9010 3 года назад
great guide you might want to add a link to a guide explaining ssh public and private keys
@vattoxonfire1278
@vattoxonfire1278 Год назад
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 ??
@vattoxonfire1278
@vattoxonfire1278 Год назад
thank u so much
@stagnigianluca3203
@stagnigianluca3203 3 года назад
thanks!
@R3v3rs3_sh3ll
@R3v3rs3_sh3ll 4 года назад
Is it mandatory to have 64bit system, I'm trying on 32bit machine its just not working. Did anyone tried on 32bit machine
@goelashish96
@goelashish96 4 года назад
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
@mizdebsk
@mizdebsk 4 года назад
change your config inside %programdata% folder to accept keys (should be C:\ProgramData\ssh\sshd_config on default windows install)
@CZghost
@CZghost 3 года назад
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.
@TipsForITPros
@TipsForITPros 3 года назад
Yes it is, so I'll revisit I think sense as you point out things have changed over the last year.
@alexlu9101
@alexlu9101 5 лет назад
How to build a persistent ssh connection? A normal ssh connection will be broken if a network issue occurs , how to make ssh re-connect automatically if the network comes back.
@TipsForITPros
@TipsForITPros 5 лет назад
Normally we advise against having a persistence connection as should be only for single tasks. however, if you are just trying to overcome some network drops then changing the timeout should work for you. /etc/ssh/ssh_config add # Send keep-alive signal to remote sshd ServerAliveInterval 6
@rafaelrio4
@rafaelrio4 Год назад
How do you make the scp behave the same...?
@aguspije
@aguspije 3 года назад
in 7:17 can we create own public key with ssh-keygen command? i still confuse with source your copy public key. thanks
@TipsForITPros
@TipsForITPros 3 года назад
Source of the public key was my Ubuntu desktop, and yes you can use your own public key.
@tavir0411
@tavir0411 3 года назад
you didnt made any configuration change on client linux machine . it needs to have a paired key ?
@TipsForITPros
@TipsForITPros 3 года назад
Key was already generated before the start of the video so only the private key was copied to the windows host.
@Mahesh-gq7fm
@Mahesh-gq7fm 5 лет назад
very nice info. tnq u. works fine for me when i used like this for connection from linux to windows ( ssh -i ~/.ssh/id_rsa abc@192.168.0.xxx)
@phonebynasri1521
@phonebynasri1521 4 года назад
Hello How to fix apt-get not recognized???
@TipsForITPros
@TipsForITPros 4 года назад
You can also use APT if you are using Ubuntu
@phonebynasri1521
@phonebynasri1521 4 года назад
@@TipsForITPros i'm using windows
@TipsForITPros
@TipsForITPros 4 года назад
Then you need to use Windows client to create the key. Ensure the Windows 10 OpenSSH client is installed. Run “ssh-keygen” in Command Prompt and follow the instructions to generate your key.
@phonebynasri1521
@phonebynasri1521 4 года назад
@@TipsForITPros thank you bro ;)
@thenewone3944
@thenewone3944 Год назад
looks like there is quite literally no video showing a keypair for a standard user on windows
@TipsForITPros
@TipsForITPros Год назад
So you want just domain/local user?
@thenewone3944
@thenewone3944 Год назад
@@TipsForITPros Yeah I’ve been racking my brain trying to figure out how to use a keypair from rhel 7 to windows server 2019, and I’ve only followed every step but it just keeps asking me for the password still.
@TipsForITPros
@TipsForITPros Год назад
No problem, I can test a working config and document it for you
@thenewone3944
@thenewone3944 Год назад
@@TipsForITPros that would be amazing I couldnt thank you enough!
Далее
How to create a chocolatey package
12:04
Просмотров 29 тыс.
OpenSSH for Absolute Beginners
23:00
Просмотров 99 тыс.
SSH To Windows Using Public Key
13:40
Просмотров 71 тыс.
How to use SSH Public Key authentication
8:26
Просмотров 121 тыс.
Best mobile of all time💥🗿 [Troll Face]
0:24
Просмотров 2,5 млн