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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux SSH & SCP命令Linux
- linux安裝sshLinux
- linux,ssh連線Linux
- Linux基礎命令---serviceLinux
- linux ssh免登陸Linux
- Linux 使用ssh-agentLinux
- Linux 安裝Mosh代替SSHLinux
- Linux 遠端 ssh 登入Linux
- Linux SSH遠端訪問Linux
- Linux伺服器---ssh配置Linux伺服器
- Linux防止SSH暴力破解Linux
- Linux基礎:ssh與scpLinux
- SSH在呼叫Service時獲取為空-解決辦法
- Linux - 配置SSH免密登入 - “ssh-keygen”的基本用法Linux
- Linux Boot,Kernel 和 Service 介紹Linuxboot
- Linux系統修改ssh埠教程。Linux
- Linux伺服器---ssh登入Linux伺服器
- linux環境下ssh 互信配置Linux
- 【configure】如何用automake、autoconf指令生成configure並建立自己的linux tar.gz安裝包【初級篇:簡單建立-測試】Linux
- Configure innodb 表空間
- Unable to boot ApiServiceProvider configure..bootAPIIDE
- Windows配置ssh免密登入linux+VSCode Remote-SSH免密編寫linux程式碼WindowsLinuxVSCodeREM
- 【Linux】自定義開機啟動serviceLinux
- Linux下 SSH遠端管理服務Linux
- Linux 命令(210)—— ssh-copy-id 命令Linux
- Linux——ssh登入很慢解決方法Linux
- Linux開啟ssh連線putty教程Linux
- 如何在 Linux 中建立 SSH 別名Linux
- linux 能ping通ssh訪問不了Linux
- linux 設定ssh 免密登入Linux
- linux 下 github ssh 無法連線LinuxGithub
- 【Autofs】How to Configure Autofs on CentOS 7?CentOS
- ./configure,make,make install的作用
- Install and configure VMware_vSphere 5
- How to Install and Configure VNC on Ubuntu 18.04VNCUbuntu
- 【Linux+Python】叢集、ssh、python、import errorLinuxPythonImportError
- Linux更改SSH遠端登入埠教程Linux
- Linux修改ssh預設22埠的方法Linux
- ssh遠端連線linux伺服器Linux伺服器