From WikiPedia,Secure Shell(SSH) is a cryptographic network protocol for operating netwaork services securely over an unsecured network.
SSH provides a secure channel over an unsecured network by using a client-server architecture, connecting an SSH client application with an SSH server.
Windows 10 uses OpenSSH as its default SSH client.
SSH is designed as a replacement for Telnet and for unsecured remote shell protocols such as the Berkeley rlogin, rsh, and rexec protocols.
From WikiPedia, OpenSSH(Also known as OpenBSD Secure Shell) is a suite of secure networking utilities based on the Secure Shell(SSH) protocol.
OpenSSH started as a fork of the free SSH program developed by Tatu Ylonen.
OpenSSH was first released in 1999, and is currently developed as part of the OpenBSD operating system.
sudo service ssh start
The client is ssh
, the daemon is sshd
.
sshd is the OpenSSH server process. It listens to incoming connections using the SSH protocol and acts as the server for the protocol.
It handles user authentication, encryption, terminal connections, file transfers, and tunneling.
service sshd start # 启动服务端
ps axjf # 查看进程树
详情参见《sshd-ssg.com》
启动出错,参见链接:
sudo ssh-keygen -A
修改/etc/hosts
文件,将data
所在ip
地址写入hosts
文件:127.0.0.1 data
,如此ssh
就能认识data
了
如果修改hosts
文件出现read only
,用sudo
。
ssh需要同时安装client和server。
sudo apt-get update
sudo apt-get install openssh-server
sudo service ssh start
ps -e | grep ssh
# 如果只看到sshd
eval ssh-agent
/etc/init.d/ssh restart
ssh-add ~/.ssh/id_rsa
sudo apt-get update
sudo apt-get install openssh-server
sudo service ssh start
ps -e | grep ssh
# 如果只看到sshd
eval ssh-agent
/etc/init.d/ssh restart
# 修改配置文件
vim /etc/hosts # 添加指定ip hostname
eval `ssh-agent -s`
ssh-add /path/id_rsa
chmod 600 /home/xiaoqiang.he/.ssh/*