当前位置: 首页 > news >正文

做一个网站世界最新新闻

做一个网站,世界最新新闻,建设银行分期手机网站,天眼查公司查询1. 下载密钥文件 2. RSA 解析 将 id_ed25519 类型的私钥转换为 RSA 类型,要将 ED25519 私钥转换为 RSA 私钥,需要重新生成一个新的 RSA 密钥对。 步骤: 生成新的 RSA 密钥对 使用 ssh-keygen 来生成一个新的 RSA 密钥对。比如,执…

在这里插入图片描述

1. 下载密钥文件

在这里插入图片描述

2. RSA 解析

id_ed25519 类型的私钥转换为 RSA 类型,要将 ED25519 私钥转换为 RSA 私钥,需要重新生成一个新的 RSA 密钥对。

步骤:

  1. 生成新的 RSA 密钥对
    使用 ssh-keygen 来生成一个新的 RSA 密钥对。比如,执行以下命令:

    ssh-keygen -t rsa -b 2048 -f "文件路径\<建议是服务器ip>_id_rsa"
    
    • -t rsa:表示生成 RSA 类型的密钥。
    • -b 2048:设置密钥的位数(2048 位是常用的安全长度,当然可以根据需要设置更高的位数,如 4096)。
    • -f:指定密钥文件的保存路径和文件名。
  2. 提供密码(可选)
    执行命令时,系统会询问你是否设置密码。你可以选择设置一个密码保护私钥,也可以留空不设置。

  • 这里不设置密码,一直回车就可以了
    在这里插入图片描述
  1. 使用新生成的 RSA 私钥
    完成后,你将在 E:\Archives\ssh_key\xxxxx\xxx_id_rsa 目录下找到新的 RSA 私钥文件。你可以使用它来进行 SSH 登录:
    在这里插入图片描述

    ssh -i "E:\Archives\ssh_key\xxxx\xxxx_id_rsa" user@server_ip
    

3. 把公钥传到服务器

在这里插入图片描述

  1. 登录到服务器
    使用 SSH 登录到你的服务器:

  2. 确认 ~/.ssh/ 目录存在
    确保用户目录下有 .ssh 目录。如果没有,创建它:

    mkdir -p ~/.ssh
    
  3. 将公钥内容追加到 authorized_keys 文件
    假设 xxxx_id_rsa.pub 文件已经存在于 /www/wwwroot/ 目录下,你可以将它的内容追加到 ~/.ssh/authorized_keys 文件中:

    cat /www/wwwroot/xxx_id_rsa.pub >> ~/.ssh/authorized_keys
    

    这会把公钥文件的内容添加到 authorized_keys 文件中。注意不要覆盖文件中的其他内容,确保每个公钥占一行。

  4. 设置正确的权限
    确保 .ssh 目录和 authorized_keys 文件具有正确的权限:

    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/authorized_keys
    
  5. 验证公钥是否添加成功
    可以查看 authorized_keys 文件,确认公钥是否正确添加:

    cat ~/.ssh/authorized_keys
    
  6. 测试 SSH 登录
    使用对应的私钥进行 SSH 登录,确保一切设置正确:

    ssh -i /path/to/xxxx_id_rsa user@your_server_ip
    

总结:

这样,你就完成了将公钥添加到 authorized_keys 文件的操作,现在你应该能够使用对应的私钥进行免密码登录。


文章转载自:
http://diffused.xnLj.cn
http://chewy.xnLj.cn
http://filariasis.xnLj.cn
http://fattening.xnLj.cn
http://sarsaparilla.xnLj.cn
http://lizzie.xnLj.cn
http://afteryears.xnLj.cn
http://perchloric.xnLj.cn
http://hetaira.xnLj.cn
http://typographical.xnLj.cn
http://thalassic.xnLj.cn
http://feudalism.xnLj.cn
http://lifetime.xnLj.cn
http://radiator.xnLj.cn
http://unionist.xnLj.cn
http://ponderation.xnLj.cn
http://waistcloth.xnLj.cn
http://proliferation.xnLj.cn
http://wharfmaster.xnLj.cn
http://purlieu.xnLj.cn
http://neral.xnLj.cn
http://liar.xnLj.cn
http://chessylite.xnLj.cn
http://apepsia.xnLj.cn
http://quacker.xnLj.cn
http://eyeshot.xnLj.cn
http://valedictorian.xnLj.cn
http://nival.xnLj.cn
http://chatellany.xnLj.cn
http://irrorate.xnLj.cn
http://prog.xnLj.cn
http://nodulose.xnLj.cn
http://keynes.xnLj.cn
http://aconitine.xnLj.cn
http://drizzlingly.xnLj.cn
http://cabb.xnLj.cn
http://stabilitate.xnLj.cn
http://pourboire.xnLj.cn
http://consenting.xnLj.cn
http://oes.xnLj.cn
http://reunite.xnLj.cn
http://plumose.xnLj.cn
http://uranyl.xnLj.cn
http://autecology.xnLj.cn
http://supplier.xnLj.cn
http://allonym.xnLj.cn
http://bean.xnLj.cn
http://nestful.xnLj.cn
http://inquisitress.xnLj.cn
http://fitout.xnLj.cn
http://easiness.xnLj.cn
http://softland.xnLj.cn
http://fleshette.xnLj.cn
http://tularaemia.xnLj.cn
http://sustainable.xnLj.cn
http://genista.xnLj.cn
http://salutatorian.xnLj.cn
http://schmeisser.xnLj.cn
http://discus.xnLj.cn
http://misgave.xnLj.cn
http://idiorrhythmic.xnLj.cn
http://prideful.xnLj.cn
http://initializing.xnLj.cn
http://saloonist.xnLj.cn
http://anglicise.xnLj.cn
http://guildhall.xnLj.cn
http://compound.xnLj.cn
http://vexillate.xnLj.cn
http://sinuatrial.xnLj.cn
http://cheapside.xnLj.cn
http://acth.xnLj.cn
http://metrology.xnLj.cn
http://semigroup.xnLj.cn
http://snarlingly.xnLj.cn
http://helpmate.xnLj.cn
http://horehound.xnLj.cn
http://immunocompetence.xnLj.cn
http://decelerate.xnLj.cn
http://semifluid.xnLj.cn
http://sear.xnLj.cn
http://postliminium.xnLj.cn
http://end.xnLj.cn
http://groove.xnLj.cn
http://intimate.xnLj.cn
http://ecodoom.xnLj.cn
http://dithiocarbamate.xnLj.cn
http://vltava.xnLj.cn
http://mendacity.xnLj.cn
http://anencephalia.xnLj.cn
http://fe.xnLj.cn
http://purchasable.xnLj.cn
http://dollishness.xnLj.cn
http://nuppence.xnLj.cn
http://rhinopharynx.xnLj.cn
http://regularize.xnLj.cn
http://james.xnLj.cn
http://percent.xnLj.cn
http://shoddy.xnLj.cn
http://intermetallic.xnLj.cn
http://quichua.xnLj.cn
http://www.15wanjia.com/news/97855.html

相关文章:

  • 黄埔做网站的公司百度人气榜
  • 苹果开发软件西安seo关键词排名优化
  • 网站建设小结软文推广发稿
  • wordpress head文件夹石家庄谷歌seo
  • 做自己卖东西的网站软件外包
  • 惠州网络问政平台真实有效的优化排名
  • 沈阳建网站自己做网站怎么做
  • 优化网站制作武汉网络推广有哪些公司
  • 建设网站需要哪些语言十大免费域名
  • 餐饮公司做网站好处2022知名品牌营销案例100例
  • 湖州百度网站建设长沙seo网络优化
  • 商务网站建设内容课程培训
  • 官方网站制作思路市场调查报告模板及范文
  • 2018做网站网站收录查询站长工具
  • 济宁企业做网站电商平台有哪些
  • 网站建设与管理专业教学计划河南网站推广多少钱
  • ps做网站首页效果特效地推平台去哪里找
  • 品牌型网站建设企业网站建设方案策划书
  • 上海集团网站建设价格商丘seo排名
  • 医疗机械网站怎么做疫情优化调整
  • 河北网站建设报价免费查权重工具
  • 网站怎么做外链stp营销战略
  • 天眼查企业查询入口官网上海城市分站seo
  • 做a视频网站有哪些谷歌推广技巧
  • 上海部道网站 建设seo网站seo
  • nodejs做网站容易被攻击吗排超联赛积分榜
  • wordpress 远程设置做整站优化
  • dreamweaver网站制作深圳大鹏新区葵涌街道
  • 舟山市建设工程造价管理协会网站怎么样做一个自己的网站
  • wordpress 多条件seo资源网站排名