设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย french

搜索
热搜: 活动 交友 discuz

问个SSH管理问题。。。 [复制链接]
查看:38 | 回复:4

225

主题

938

回帖

2571

积分

金牌会员

积分
2571
发表于 2013-4-15 20:04:06 | 显示全部楼层 |阅读模式
本帖最后由 Janjun 于 2013-4-15 20:10 编辑

在Mac下如果要管理VPS,用终端,然后SSH过去SSH root@gov.cn  奇葩的是系统会自动记录一个类似于证书的东西,用于识别当前连接的是不是真的和以前一样的VPS。如果重装VPS了,很蛋疼,必须用工具去//.ssh 里删掉之前保存的,然后才可以重新使用。。这奇葩情况大家有办法解决吗?

26

主题

519

回帖

1134

积分

金牌会员

积分
1134
发表于 2013-4-15 20:12:08 | 显示全部楼层
Win的Putty还有BiteWise下也会记录的 服务端密钥

只不过没那么蛋疼 如果不一致最多弹个警告~ ~

225

主题

938

回帖

2571

积分

金牌会员

积分
2571
 楼主| 发表于 2013-4-15 20:13:35 | 显示全部楼层

aarwwefdds 发表于 2013-4-15 20:12



Win的Putty还有BiteWise下也会记录的 服务端密钥

只不过没那么蛋疼 如果不一致最多弹个警告~ ~ ...

Mac OS下如果不匹配,则自动不给你登录。搞的每次都要用工具进特定路径去删。

169

主题

3487

回帖

7601

积分

论坛元老

积分
7601
发表于 2013-4-15 20:12:00 | 显示全部楼层
usage: ssh-keygen [options]
Options:
  -A          Generate non-existent host keys for all key types.
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Export OpenSSH to foreign format key file.
  -F hostname Find hostname in known hosts file.
  -f filename Filename of the key file.
  -G file     Generate candidates for DH-GEX moduli.
  -g          Use generic DNS resource record format.
  -H          Hash names in known_hosts file.
  -h          Generate host certificate instead of a user certificate.
  -I key_id   Key identifier to include in certificate.
  -i          Import foreign format to OpenSSH key file.
  -L          Print the contents of a certificate.
  -l          Show fingerprint of key file.
  -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
  -m key_fmt  Conversion format for -e/-i (PEM|PKCS8|RFC4716).
  -N phrase   Provide new passphrase.
  -n name,... User/host principal names to include in certificate
  -O option   Specify a certificate option.
  -P phrase   Provide old passphrase.
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -s ca_key   Certify keys with CA key.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -V from:to  Specify certificate validity interval.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
  -z serial   Specify a serial number.

ssh-keygen -R gov.cn

150

主题

1837

回帖

4152

积分

论坛元老

积分
4152
发表于 2013-4-15 20:31:00 | 显示全部楼层
用一个Z打头的ssh工具
您需要登录后才可以回帖 登录 | 立即注册

论坛客服/商务合作/投诉举报:2171544 (QQ)
落伍者创建于2001/03/14,本站内容均为会员发表,并不代表落伍立场!
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论!
落伍官方微信:2030286 邮箱:(djfsys@gmail.com|tech@im286.com)
© 2001-2014

浙公网安备 33060302000191号

浙ICP备11034705号 BBS专项电子公告通信管[2010]226号

  落伍法律顾问: ITlaw-庄毅雄

Archiver|手机版|Discuz! X

GMT+8, 2026-7-26 08:26 , Processed in 0.016288 second(s), 3 queries , Gzip On, Redis On.

返回顶部