如何使用ssh-hop從windows轉發金鑰

kaneda99提供的影象。...

如何使用ssh-hop從windows轉發金鑰 Do you have the need to work with SSH keys from Windows and you find that this becomes a hassle very quickly? HTG goes into how to make the process as transparent as possible, using The PuTTY package suite.

kaneda99提供的影象。

概述

在本指南中,我們將解釋如何使用Putty&Winscp使用公鑰從Windows SSH到Linux機器。此外,我們將啟用轉發選項。這將允許您繼續從用金鑰連線的機器跳轉到另一臺支援用金鑰進行SSHing的機器。我們將不討論如何在Linux機器上放置公鑰,因為我們已經討論了這個主題。

安裝基本程式/軟體包

  • 獲取PuTTY包(不僅僅是可執行檔案)並安裝它。
  • (可選)獲取程式WinSCP和mRemote,並安裝它們。

Generate a Key pair

If you haven’t created a key pair yet, and you want to do it from the comfort of your Windows desktop, you can use “PuTTY Key Generator” which was installed as part of the “PuTTY package“:

  • Open “PuTTY Key Generator” by going into “Start” -> “PuTTY” -> “PuTTYgen”
  • While not required, it is recommended that you change the length of your key from the default 1024. Change the number of “bits” at the bottom from “1024” to “4096”.
  • Click “Generate” and move your mouse around randomly until the bar reaches 100%. This “salts” your key, so try to make your mouse movements as random as possible. 007Ys3FFgy1gpgg4zg1lsj30dp0dat9e
  • Once the program is done generating the key,
  • On the “Key Comment” line, change it to be something more useful like your name. For example: 007Ys3FFgy1gpgg500n3sj30dp06hq3g
  • While not required, it is highly recommended that you set a passphrase on the private key. This will protect your private key in case some one gains access to it and you will only be bothered with entering once at machine boot up, if you perform all the steps in the guide.
  • Click on “Save private key”.

Note: If you already have a saved private key, you can “extract” the public portion by “load”ing it with the generator.

Configuring the Key-quartermaster

The “Pageant” program that was installed as part of the PuTTY package, can store your key/s and give them to mRemote, WinSCP and PuTTY as required.

  • Open “Pageant” from the start menu. (Note: it may run off to the system tray) 007Ys3FFgy1gpgg50l6e0j30e70a5wet
  • If it has run off to the system tray, double click it, to bring up the main window.
  • Click “Add Key” and give it your saved Key Pair.
  • If need be, provide the passphrase.

Done, from now on, Putty, WinSCP and any program that serves as a fronted for them (like mRemote) will first c***ult with the Pageant program if there is a key to use for the connection.

Loading Keys automatically at startup (Optional)

The process above needs to be repeated after every machine reboot, as Pageant doesn’t save loaded key configurati***. To have it load the configuration automatically at startup, you can use one of the two methods below:

  1. Assuming you’ve allowed Pageant to take over the ppk suffix, you should be able to simply add the key files to the Windows “startup” folder.
  2. Create a shortcut to the program that passes the key-files as parameters.  For example, the “Target” command for two(2) keys would look like: 007Ys3FFgy1gpgg514t97j30bc06e0sv “C:\Program Files (x86)\PuTTY\pageant.exe” “C:\Users\AviadR\Documents\aviad’s 4096.ppk”  “C:\Users\AviadR\Documents\aviad’s 1024.ppk
  • Then, add this shortcut to window’s startup.

Enable SSH Agent forwarding (PuTTY/mRemote)

此配置是可選的,但這樣做將允許您在SSH到一臺計算機後繼續,並使用相同的金鑰從它SSH到下一臺計算機。為此:

  • 開啟油灰。
  • 在“Connection”->“SSH”->“Auth”下。
  • 選中“允許代理轉發”。
  • 返回“會話”
  • 選擇“預設設定”項。
  • 點選“儲存”。
  • 完成。

啟用SSH代理轉發(WinSCP)

  • In a WinSCP new connection tab, Enable the Advance opti*** checkbox.
  • Go to the “SSH” -> “Authentication”.
  • Check the “Allow agent forwarding” checkbox. 007Ys3FFgy1gpgg51nvdfj30em0abq3u
  • Go to the “General Opti***” by clicking on “Preferences” -> “Preferences”. 007Ys3FFgy1gpgg527vltj30eo0adt9n
  • Enable Putty to be invoked with the  forwarding option by going into “Integration” -> “Application” and appending the “-A” CLI option. 007Ys3FFgy1gpgg52sxzdj30eq0c5js9
  • You can now make this the template for subsequent connecti*** by going back to “Session” and typing in, the basic information that you know will be uniform across all connecti*** (if any), like Username, IP, Etc’. Then “save” the session.

Author’s Notes

While purists, will say that any serious SSHing, should be done from a Linux machine, the reality is that Ubuntu’s bug #1 “Microsoft has a majority desktop market share”, still holds true. maybe one day we’ll move to the Linux desktop completely, but that day will not be today and not for the 35 year old shell.


斯派克:所以我想我服刑了,我可以走了?聲波:自由行動,塞伯坦…

  • 發表於 2021-04-12 04:08
  • 閱讀 ( 51 )
  • 分類:網際網路

你可能感興趣的文章

用堡壘主機保護您的網路只需3個步驟

... 你們中的精明人可能想知道如何透過網際網路接入家庭路由器。大多數internet服務提供商(ISP)都會為您分配一個臨時IP地址,該地址經常更改。如果你想要一個靜態IP地址,ISP往往會額外收費。好訊...

  • 發佈於 2021-03-12 01:44
  • 閲讀 ( 59 )

如何加密您的gmail、outlook和其他Web郵件

...。他們掌握著你的數字王國以及個人資訊的鑰匙。這是你如何加密你的Gmail,Outlook.com,以及其他電子郵件帳戶。 ...

  • 發佈於 2021-03-21 20:27
  • 閲讀 ( 58 )

什麼是windows 10通用產品金鑰?下面是如何使用它們

... 您也可以檢視我們的指南如何獲得視窗10免費。 ...

  • 發佈於 2021-03-30 02:21
  • 閲讀 ( 55 )

鍵盤的媒體鍵在所有現代網路瀏覽器中都能工作

...Safari和Edge中的YouTube、Spotify以及其他影片和音樂網站。 如何在網站上使用媒體金鑰 使用媒體鍵應該很簡單:只需按下它們。例如,如果您正在播放一段YouTube影片,而該影片隱藏在某個背景選項卡中,則可以按鍵盤上的“播放/...

  • 發佈於 2021-04-01 10:04
  • 閲讀 ( 55 )

如果沒有windows金鑰,如何建立該金鑰

...過借用一個不經常使用的鍵來“新增”一個鍵盤。下面是如何做到這一點。 使用微軟的免費PowerToys實用程式,你可以很容易地重新分配任何鍵,使其與其他鍵一樣工作(甚至給它們一個新的功能,如靜音你的音訊)。在本例中...

  • 發佈於 2021-04-01 21:05
  • 閲讀 ( 43 )

如何使用命令提示符查詢windows 10產品金鑰

...以透過在命令提示符下輸入快速命令來找到它。下面介紹如何使用Windows登錄檔方法查詢產品金鑰。 使用命令提示符查詢windows 10產品金鑰 要使用命令提示符查詢Windows10產品金鑰,您需要以管理許可權開啟命令列應用程式。為此...

  • 發佈於 2021-04-02 13:00
  • 閲讀 ( 52 )

如何在硬體更改後重新啟用Windows10

...到更好的元件和Windows10只是不承認你的電腦?本指南介紹如何在硬體更改後重新啟用Windows10。 什麼算硬體更改? 這是一個連微軟都無法完全解釋的領域。相反,公司在其網站上提供以下宣告: “If you make significant hardware changes o...

  • 發佈於 2021-04-03 00:28
  • 閲讀 ( 46 )

使用aws保護您的家庭minecraft伺服器免受ddos攻擊

...執行Minecraft伺服器而不暴露你的IP地址嗎?你可以!只需使用amazonwebservices設定一個免費代理,就可以保護您的伺服器免受拒絕服務攻擊。我們會教你怎麼做。 本指南適用於任何遊戲伺服器,而不僅僅是Minecraft。它所做的只是特...

  • 發佈於 2021-04-03 03:34
  • 閲讀 ( 51 )

什麼是反向ssh隧道?(以及如何使用)

...用隧道。 所以我們得到了“反向SSH隧道”這個名字 它是如何工作的? 反向SSH隧道依賴於遠端計算機使用已建立的連線來偵聽來自本地計算機的新連線請求。 遠端計算機監聽本地計算機上的網路埠。如果它檢測到對該埠的SSH請...

  • 發佈於 2021-04-03 08:32
  • 閲讀 ( 49 )

如何保護bitlocker加密檔案免受攻擊者攻擊

...,這種裝置加密技術比完整的BitLocker更為有限。 攻擊者如何利用此漏洞:不需要利用漏洞!如果您的Windows Home PC未加密,攻擊者可以刪除硬碟驅動器或啟動PC上的其他作業系統來訪問您的檔案。 解決方案:支付99美元升級到Window...

  • 發佈於 2021-04-03 18:41
  • 閲讀 ( 55 )
帥氣無敵就是哥
帥氣無敵就是哥

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦