当前位置:网站首页>Xshell's ssh server rejected the password, failed to skip publickey authentication, and did not register with the server
Xshell's ssh server rejected the password, failed to skip publickey authentication, and did not register with the server
2022-07-04 11:41:00 【Samsara】
XShell and SSH A series of questions about
- Today, I encountered a little episode while helping with the network topology , A normal server can use users and passwords Xshell Connected , But today, after entering the user name and password , Always jump out and upload publickey The interface of , Can't go around , And it often shows that the host is not registered with the server after uploading
- The preliminary judgment is server Of ssh Problems setting up the
- A big change , Include
ssh-key -t rsaWait for a lot of , Later, it was suspected that windows The key generation problem here , I used it specially Xshell The built-in generation 2048 The public key , It's no use
Solution
- Because you can't log in with a password , Just check ssh Of config file , Usually in /etc/ssh Under the sshd_config, Note that sshd_config, No ssh_config, however Set some default settings to yes Later, I found that it was still not good , Show SSH The server rejected the password , The problem is still unsolved
- For a long time , Suddenly thought of config Statement coverage , The post setting statement can override the pre setting statement , For example, it states a=1 Then it was declared on the last line a=2,a The value of will be overwritten , Sure enough, there are repeated statements in the last few lines , Finally, just change it all
Experience
Later change config Such configuration files , Don't find relevant keywords, modify them directly and then close , Suggest or use vim Of / Search for complete strings , In case someone adds a covering statement later , No matter how you change it in front of you
边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 15
- Solaris 10 network services
- Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)
- Analysis function in SQL
- Customized version of cacti host template
- Object. Assign () & JS (= >) arrow function & foreach () function
- AI should take code agriculture? Deepmind offers a programming version of "Alpha dog" alphacode that surpasses nearly half of programmers!
- 三立期货安全么?期货开户怎么开?目前期货手续费怎么降低?
- How to create a new virtual machine
- Iptables cause heartbeat brain fissure
猜你喜欢
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10](/img/89/1c2f98973b79e8d181c10d7796fbb5.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21](/img/73/4050a592fdd99bf06e8fd853b157b6.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21

Enter the smart Park, and change begins here
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7](/img/44/1861f9016e959ed7c568721dd892db.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7

Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography

Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early

Elevator dispatching (pairing project) ④

Digital simulation beauty match preparation -matlab basic operation No. 6

2020 Summary - Magic year, magic me
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11](/img/6a/398d9cceecdd9d7c9c4613d8b5ca27.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
随机推荐
Recommend a cool geospatial data visualization tool with low code
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Review of week 278 of leetcode II
Polymorphic system summary
Process communication and thread explanation
SSH principle and public key authentication
Xiaobing · beauty appraisal
Workplace liquor bureau must pay attention to
Heartbeat报错 attempted replay attack
Local MySQL forgot the password modification method (Windows)
QQ one click cookie acquisition
(August 10, 2021) web crawler learning - Chinese University ranking directed crawler
DVC use case (VI): Data Registry
Sys module
Realize cross tenant Vnet connection through azure virtual Wan
守护进程Xinted和日志记录Syslogd
Number and math classes
Reptile learning 3 (winter vacation learning)
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
re. Sub() usage