ITPub博客

首页 > Linux操作系统 > Linux操作系统 > configure ssh service in linux :

configure ssh service in linux :

原创 Linux操作系统 作者:itpremier 时间:2010-06-21 10:21:06 0 删除 编辑

1, make sure the sshd service is installed on system.
service sshd status

2, create public/private key pairs:
ssh-keygen # answer with default value.
3, now private and public key pairs are created as OpenSSH format.

if we use other client tool not ssh program (such as secureCRT,PUTTY)
We must first have a clear concept about the public key format.
In fact, Linux use OpenSSH format ,however Others (windows remote client tools)
use SECSH file format. So if we want use other tool connect to Linux SSHD server,
we should convert public key file from OpenSSH format to SECSH format.
Do it like this:
ssh-keygen -e -f id_rsa > id_rsa1.pub # or like following get the same result.
ssh-keygen -e -f id_rsa.pub > id_rsa1.pub

4, transfer to client . we can use sz/rz tool achieve this.Here we assume you have connected to server by Telnet client tool(secureCRT).
sz id_rsa1.pub

5, add the authorized public key:
cat id_rsa.pub >> authorized_keys

6, configure client tool select ssh2 tool, prioritize "public key" as the first authenticate method.
select the file received from sz( id_rsa1.pub) .

7, try to connect to server. Good Luck !

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/350519/viewspace-1034524/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: standby database
请登录后发表评论 登录
全部评论

注册时间:2008-11-27

  • 博文量
    253
  • 访问量
    773710