qns_fengyusong 发表于 2018-8-23 12:59:56

secure shell(SSH)

  基本概念:
  SSH为secure shell的缩写,是基于网络应用层的一个安全协议,是专为远程会话提供安全保障的。
  一些应用情况:
  1、Linux系统很多时候作为服务器在使用,管理员登入管理服务器很多情况下都是远程登入,在这个过程SSH就使用上了。
  2、我们在windows上安装linux虚拟机,但又更中意于在windows界面下进行开发工作,此时很多时候我们使用SecureCRT与虚拟机进行连接。这个连接过程中也使用了SSH。
  以SecureCRT连接虚拟机为例进行简要说明:
  1、我们需要确定ssh程序已在目标机上安装并且相应的服务已开启运行
  如下我们查询,可以看到sshd已安装并运行。
  下面的之所以查询到多个sshd是因为有secureCRT连接上了该虚拟机
  jetxu@ubuntu:/etc/init.d$ ps -e|grep ssh
  1001 ?      00:00:00 sshd
  jetxu@ubuntu:/etc/init.d$ ps -e|grep ssh
  1001 ?      00:00:00 sshd
  2954 ?      00:00:00 sshd
  3010 ?      00:00:00 sshd
  2、当我们查询到sshd服务并未运行,可以使用下面命令启动
  jetxu@ubuntu:/etc/init.d$ ./ssh start
  jetxu@ubuntu:/etc/init.d$
  jetxu@ubuntu:/etc/init.d$ ps aux -e|grep ssh
  root       29210.00.2613845444 ?      Ss   09:44   0:00 /usr/sbin/sshd -D
  root       30110.00.3 1098046552 ?      Ss   09:47   0:00 sshd: jetxu
  jetxu      30660.00.2 1098044112 ?      S    09:47   0:00 sshd: jetxu@pts/0
  jetxu      30840.00.1159442276 pts/7    R+   09:47   0:00 grep --color=auto ssh
  jetxu@ubuntu:/etc/init.d$

页: [1]
查看完整版本: secure shell(SSH)