排行榜 统计
  • 文章总数:55 篇
  • 评论总数:232 条
  • 分类总数:9 个
  • 最后更新:3月28日

Linux服务器设置私钥登录

本文阅读 1 分钟
首页 特别推荐 正文

针对linux服务器,为了安全起见,会在修改ssh端口基础上,我们一般还可以自己生成一对rsa密钥,本地通过私钥登录,显示远程密码登录,具体操作步骤如下。

生成SSH公钥和私钥

ssh-keygen -t rsa

注意生成时设置密钥的密码,这样在利用证书登录时就会先验证密码

导入公钥
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

本地scp下载私钥

scp [email protected]:~/.ssh/id_rsa C:\Users\user\Documents\

删除服务器公钥和私钥

rm -f ~/.ssh/id_rsa*
设置文件和文件夹读写权限
chmod -R 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
配置sshd_config文件

设置允许证书登录

vi /etc/ssh/sshd_config
:set nu     #可显示行号,第43行
PubkeyAuthentication yes

重启ssh服务

systemctl restart sshd.service
关闭密码登录
确保证书登录成功后再配置

vi /etc/ssh/sshd_config
PasswordAuthentication no
systemctl restart sshd.service
本文来自投稿,不代表本站立场,如若转载,请注明出处:
-- 展开阅读全文 --
甲骨文oracle封账号和试用期到期的区别!
« 上一篇 12-04
挖peer2profit网赚回血保姆级教程 支持windows/debian/ubuntu/安卓手机/路由器等
下一篇 » 12-15

发表评论

V注册会员 L评论等级
R8 条回复
  1. UJnaZgNseAvblxd :

    CfxaGFspvwnXgMlI

  2. HFUYkDbuRJolOc :

    cIfsiDudZvR

  3. elTMJZfDiGIHV :

    MDCYtnrjLk

  4. IFpgRjluGY :

    iyGLobjHOpsuY

  5. pihywydlalo563 :

    BTC may be the latest or last chance to get rich in this era. It will reach $200000 next year or the next year.

    BTC has increased 20 times in the last year, and other coins have increased 800 times!!!

    Think about only $2 a few years ago. Come to the world's largest and safest virtual currency exchange Binance to Get free rewards. Don't miss the most important opportunity in life!!!

    https://hi.switchy.io/91xl

    1. HFUYkDbuRJolOc :

      @pihywydlalo563

      vBEAqGXCQac

没有更多评论了

作者信息

动态快讯

    请配置好页面缩略名选项

热门文章

标签TAG

热评文章

最近回复

RalphGuicT
昨天 23:03

https://bimworx.net/user/bob-vlander/profile/info
https://180degreehealth.com/180forums/users/valderog/
https://multichoicetalentfactory.com/user/57378
https://esteri.uilpa.it/forum/user/2045-trondas.html
https://goli.breezio.com/user/Slomar
https://www.energyplan.eu/forums/users/Alberon/
https://www.flexicontent.org/forum/user/20044-bordano.html
https://www.nexusdb.com/forums/member.php?u=19034
https://forums.elementalgame.com/user/7354393
https://huayra.educar.gob.ar/ayuda/?qa=user/Jushoriax
https://forum.aigato.vn/user/qislanai
https://www.embedded-software-engineering.de/community/user/andreasandreas013
https://forum.faforever.com/user/zinaur
https://www.rcweb.de/index.php/User/16507-Sbancta/?editOnInit=true#about
https://www.chambers.com.au/forum/view_post.php?frm=2&pstid=57182
https://www.khedmeh.com/wall/forum/topic/26982
https://www.guildlaunch.com/guild/forums/viewtopic.php?p=40248951&gid=48#40248951
http://nexusstem.co.uk/community/main-forum/ripetitore-5g-del-segnale-cellulare/
http://biznas.com/Biz-postsm284113_Amplificatore-segnale-rete-TIM-3G-4G.aspx#post284113
https://www.tapatalk.com/groups/renotalkfr/viewtopic.php?f=33&t=245251&from_new_topic=1
https://archives.profsurv.com/forum/Professional-Surveyor-Magazine-Discussion/Problem-Corner/-132588.aspx
https://www.reisezielforum.de/viewtopic.php?t=63424
http://users.atw.hu/nlw/viewtopic.php?p=42398#42398
https://www.hebergementweb.org/threads/dove-posso-acquistare-un-ripetitore-di-segnale-mobile.1251179/
https://forum.trackandfieldnews.com/special/albums/1829937-come-installare-un-amplificatore-di-segnale-mobile
http://www.horawej.com/index.php?lay=boardshow&ac=webboard_show&WBntype=1&Category=horawejcom&thispage=4&anspage=1&No=1262877
https://www.vidpaw.com/topics/best-youtube-video-downloader-mac.html
Un amplificatore di segnale per cellulare GSM, 4G/LTE, UMTS e una soluzione eccezionale per chiunque abbia problemi di ricezione. Questo dispositivo potenzia il segnale per tutti gli operatori mobili, garantendo chiamate chiare e connessioni internet veloci anche nelle zone piu remote. Immagina di poter lavorare da casa senza interruzioni o guardare video in streaming senza buffering! L'installazione e semplice e rapida, e il miglioramento del segnale e immediato. E un investimento che vale ogni centesimo per chi desidera una connettivita affidabile e continua. Non lasciare che un segnale debole ti rallenti, scegli un amplificatore di segnale e goditi una copertura perfetta ovunque tu sia!
https://medialoot.com/blog/how-to-make-tv-static-noise-in-photoshop/
https://www.makexyz.com/f/405bc467fcbe33d9a9d40048392c3e32
https://profere.uvci.edu.ci/forum/public/d/12985-la-mia-esperienza-di-acquisto-di-un-amplificatore-di-segnale-mobile
http://journals.hnpu.edu.ua/index.php/literature/comment/view/4159/889/11870
https://portal.uaptc.edu/ICS/Campus_Life/Campus_Groups/Amicus_Curiae_Paralegal_Club/Discussion.jnz?portlet=Forums&screen=PostView&screenType=change&id=2f996256-0feb-4f6d-be94-e616d7e50a77
https://sites.google.com/view/segnale-cellulare4g/
https://amplificatore-segnale-cellulare.mystrikingly.com/
https://articworlds.blogspot.com/2024/04/i-vantaggi-dellutilizzo-degli.html
https://www.gamerlaunch.com/community/users/blog/6398497/2281879/gli-amplificatori-di-segnale-per-vodafone-e-la-cop/?gid=535
https://companylistingnyc.com/listings/miglioramenti-della-copertura-e-della-qualita-del-segnale-con-gli-amplificatori-per-windtre/
https://artistecard.com/ericyoung#!/news/2024/82208
https://webhitlist.com/profiles/blogs/guida-all-acquisto-di-un-amplificatore-di-segnale-cellulare-cosa
https://www.evernote.com/shard/s627/sh/3c2dce1c-d981-d5b4-37d8-74017a9e91bb/QM8z9ncRFbxTx7mVlUGRL-9b0L-M681l3iTXNpZJLJ-3EGnoEt6stFZm9A
https://webyourself.eu/blogs/361277/Amplificatori-di-Segnale-Cellulare-4G-Confronto-tra-i-Principali-Modelli
https://heyjinni.com/read-blog/70670
https://www.merchantcircle.com/blogs/1win-casino-climax-mn/2024/4/Risoluzione-dei-problemi-al-segnale-cellulare-con-TIM-Telecom-Italia/2710323
https://theomnibuzz.com/amplificatori-di-segnale-per-vodafone-risoluzione-dei-problemi-e-suggerimenti-per-massimizzare-lefficacia/
https://community.wongcw.com/blogs/768802/Scegliere-il-Miglior-Amplificatore-di-Segnale-per-WindTre-Fattori-da

Node-Media-Server:国人开发-简易流媒体服务