SSH登陸失敗可能原因,備忘
情況一
命令如下:
root@linux:~# ssh -i ~/.ssh/id_rsa root@10.0.0.111
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: id_rsa
root@10 .0.0.111's password:
提示還讓輸入密碼或者如下提示:
[email protected]:~# ssh -i ~/.ssh/id_rsa [email protected]
或
[email protected]:~# ssh 10.0.0.111 -l root -i ~/.ssh/id_rsa
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/home/xxx/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/xxx/.ssh/id_rsa": bad permissions
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
原因是ssh對於私鑰證書的許可權很敏感,可以在ssh_config中設定為不檢驗證書的許可權。不過不建議這麼做,還是老老實實的改檔案許可權吧(服務端和客戶也是如此)如果你的英文比較牛逼這個原因提示還是很明顯的。只可惜偶是英文不濟,沒有辦法。
解決方法:
chmod 600 ~/.ssh/id_rsa
相關推薦
SSH登陸失敗可能原因,備忘
情況一 命令如下: root@linux:~# ssh -i ~/.ssh/id_rsa [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
chrome安裝或更新失敗可能原因及解決辦法
Chrome在安裝或更新時,可能會出現0x80070057、0x80040154、0x80004002、0x8004070c、0x80080005、0x80072EFD、0x80072EE2等錯誤,本文說明如何解決這些問題。 解決Chrome安裝或更新中出現的0x80070057等錯誤
Activiti 框架中的事件的定義描述(轉載,備忘)
---------------------------------------------------------------------------------------------------------------------------------------------
python使用MongoDB,備忘
知識備份,內容多來自知乎的Jerry專欄。 安裝pymongo pymongo是由MongoDB開發者釋出的官方驅動程式,官方文件在這裡。 安裝: pip install pymongo 在命令列中import pymongo沒有異常則安裝成功。
leetcode刷題,總結,記錄,備忘300
leetcode300,Longest Increasing Subsequence Given an unsorted array of integers, find the length of longest increasing subsequence. For
各種錯誤可能原因,除錯經驗
不斷更新中。。。 一、不同資料測試,有的正確,有的不正確 可能原因:資料溢位 例項:quartus verilog輸出資料大數有時不正確,小數正確 最終找出原因:暫存器長度不夠 --------
leetcode刷題,總結,記錄,備忘202
leetcode202 Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the followin
leetcode刷題,總結,記錄,備忘 201
Subscribe to see which companies asked this question 這道題目,需要圍繞2的指數次冪來解決,題目中的例子[5, 7]我們仔細觀察會發現,5,6,7這三個數的二進位制都是在4的基礎上不斷加1得到的,所以如果是[5, 9]這種情況,跨越了2個2的指數次冪的情況
SSh登陸失敗的日誌檢視與攻擊預防
之前因為伺服器裡沒有什麼重要的東西,也就一直沒有關注過登陸日誌,剛才在配置ssh chroot出現錯誤是才去看的auth.log,記得這個檔案就是個登陸日誌,而且我之前偶爾檢視時都很少內容,所以就直接cat查看了,誰知道竟然是滿屏滿屏的,"Failed password
我的 redis3.*主從連線失敗可能原因
-DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication pass
10343 劃分凸多邊形(找規律,遞迴&分治,備忘)
10343 劃分凸多邊形 時間限制:800MS 記憶體限制:65535K 提交次數:0 通過次數:0 題型: 程式設計題 語言: C++;C;VC;JAVA Description 問題描述:一個正凸N邊形,可以用N-3條互不相交的對角線將正N邊形分成N
leetcode刷題,總結,記錄,備忘 19
leetcode19Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. For exam
使用者登入(登陸失敗3次,2分鐘後再登陸)
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;
leetcode刷題,總結,記錄,備忘 350
leetcode350Intersection of Two Arrays II Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1,
求k個數組包含每個陣列至少一個元素的最小範圍(待字閨中,備忘)
有k個有序的陣列,請找到一個最小的數字範圍。使得這k個有序陣列中,每個陣列都至少有一個數字在該範圍中。 例如: 1: 4, 10, 15, 24, 26 2: 0, 9, 12, 20 3: 5, 18, 22, 30 所得最小範圍為[20,24],其中,2
linux下通過ssh登陸失敗解決方案
在一臺linux機器上ssh遠端另外一臺linux伺服器時候出現: [[email protected] .ssh]# ssh 192.0.50.80 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
leetcode刷題,總結,記錄,備忘 290
leetcode290 Word Pattern Given a pattern and a string str, find if str follows the same pattern.
剛買了個阿里ECS雲主機,一邊折騰一邊記錄,備忘
安裝mysql 因為用的CentOS 7.2 64位版本,預設沒有mysql安裝源 先下載: # wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 安裝: rpm -ivh mysq
微信小程序對接阿裏雲視頻點播,備忘
ram data 阿裏 util toast substr rand con stat upvideo(){ var aliOssParams = util.aliOssParams();//主要是獲取上傳阿裏雲的加密策略policy和簽名si
SSH無法登陸可能原因分析
1.如果是root登陸的,需要開啟 PermitRootLogin yes 經過嘗試發現:如果不將StrictModes 設定為no ,登陸時總是提示被拒絕 其次就是 PermitEmptyPasswords no