-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea9756
commit d75969c
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
# HowToUseSSH | ||
这个项目是教会小白用户如何使用SSH | ||
# 如何使用ssh? | ||
|
||
## Windows 10 | Windows 11 用户 | ||
> ssh 是windows10 和 windows 11 系统自带的命令。windows 7的老系统不带,但是你可以下载[Putty](https://www.putty.org/) 来替代。 | ||
> 使用方法: | ||
## 1. 点击 开始, 输入cmd 找到命令行 | ||
|
||
|
||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/c3a0c2ab-2879-4f1d-aa4e-5eb5f6949ad1" width="592" height="492"/> | ||
|
||
## 2. 在命令行中输入 | ||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/7cf70a2d-a1ac-4239-92d8-a7608651b751" width="50%"/> | ||
<br> | ||
ssh 用户名@服务器地址 | ||
|
||
## 3. 输入密码 | ||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/0c63a1d8-da1b-49e0-9f1c-b433ebcd2ce8" width="50%"/> | ||
<br> | ||
|
||
## 4. 连接成功 | ||
<br> | ||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/d613a1fc-cedf-4c12-8136-e395c95298fe" width="50%"/> | ||
|
||
# 常见问题 | ||
### 提示主机密钥发生了变化 | ||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/bcb99038-e012-496b-8168-4d794eac5da0" width="50%"/> | ||
<br> | ||
|
||
|
||
### 解决办法 | ||
|
||
* 删除上次存储的ssh密钥即可。然后再重新连接ssh | ||
|
||
<img src="https://github.com/wukongdaily/HowToUseSSH/assets/143675923/470ea6c4-98a4-42c5-9654-7277de97c860" width="80%"/> | ||
|
||
|
||
`del /q %userprofile%\.ssh\known_hosts` | ||
|
||
|
||
|