configure ssh service in linux :
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部落格 ” ,連結:http://blog.itpub.net/350519/viewspace-1034524/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- configure vnc server in linuxVNCServerLinux
- 11.2.0.3 RAC 全過程--8.Oracle RAC ssh ConfigureOracle
- Oracle Linux 7 Configure DNSOracleLinuxDNS
- Linux NTP configure and Hangcheck-timeLinuxGC
- Configure the DNS Server for SCAN VIP on LinuxDNSServerLinux
- Linux SSH & SCP命令Linux
- Linux開啟SSHLinux
- java linux ssh jarJavaLinuxJAR
- SSH linux下配置。Linux
- linux安裝sshLinux
- SSH在呼叫Service時獲取為空-解決辦法
- Linux中./configure檔案配置詳解Linux
- How To Configure The "/etc/hosts" File On Linux [ID 242490.1]Linux
- Linux基礎命令---serviceLinux
- linux ssh免登陸Linux
- Linux ssh登入命令Linux
- Linux 使用ssh-agentLinux
- Linux 的./configure,make,make install的作用Linux
- Linux防止SSH暴力破解Linux
- Linux 遠端 ssh 登入Linux
- Linux伺服器---ssh配置Linux伺服器
- Linux SSH遠端訪問Linux
- Linux基礎:ssh與scpLinux
- Linux命令ssh-copy-idLinux
- Linux SSH免密登陸Linux
- Linux配置SSH免登入Linux
- Linux修改SSH登入埠Linux
- Linux SSH 無法登陸Linux
- linux使用SSH登入慢Linux
- How to Configure the DNS Server for 11gR2 SCAN On LinuxDNSServerLinux
- Linux Boot,Kernel 和 Service 介紹Linuxboot
- Linux OS Service 'ntpd' (Doc ID 551704.1)Linux
- rman configure
- Linux 安裝Mosh代替SSHLinux
- Linux伺服器---ssh登入Linux伺服器
- linux環境下ssh 互信配置Linux
- Linux系統修改ssh埠教程。Linux
- Linux SSH無密碼登入Linux密碼