美文网首页
SSH - Secure Shell

SSH - Secure Shell

作者: 纸片那天 | 来源:发表于2017-07-27 16:19 被阅读0次

实现软件:

OpenSSH, SSH Communications Security Corporation

sshd: SSH服务端程序
ssh: SSH客户端程序

密码登录

  1. Client发送登录请求,Server收到后,向Client发送public key
  2. Client使用public key加密登录密码,并发送至Server
  3. Server使用private key解密密码,并验证是否允许登录

危险:man-in-the-middle截获登录请求,冒充Server。
解决方法:提示key fingerprint,用户自行核对。

公钥登录

  1. Client将public key发送并保存在Server上
  2. Client发送登录请求,Server随机产生字符串,并发送给Client
  3. Client使用private key将字符串加密,并发送给Server
  4. Server使用public key解密字符串,并验证是否允许登录

ssh-agent

执行eval `ssh-agent -s`
ssh-agent 启动后,只需首次连接时输入passphrase,之后这个key的信息就会保存在ssh-agent里,即不必再输入passphrase。

Tips:

  • .ssh目录权限必须是700
  • 使用ssh-copy-id将公钥发送至Server:ssh-copy-id -i ~/.ssh/mykey user@host
    authorized_keys的权限必须是600

相关文章

  • Secure File Transfer Client和SSH

    SSH Secure Shell Client是SSH命令行控制终端,用SSH Secure File Trans...

  • Linux ssh sftp

    Secure Shell(SSH) Secure Shell(SSH)是一种加密网络协议,用于在不安全的网络上安全...

  • SSH原理 and SSH远程登录

    SSH Secure Shell(SSH) 是由 IETF(The Internet Engineering Ta...

  • SSH

    SSH [TOC] 什么是SSH Key? SSH全称Secure SHell,即十分安全的Shell,是IETF...

  • 路由器ssh服务配置

    SSH 为 Secure Shell[https://baike.baidu.com/item/Secure%20...

  • 70.Centos配置OPENSSH 服务

    语法: ssh [username@hostname] [-p port]SSH Secure Shell 用于两...

  • 01-搭建逆向环境

    一、SSH介绍:SSH、OpenSSh SSH 为Secure Shell 的缩写,意为“安全外壳协议”;SSH ...

  • 37ssh介绍与实践

    1.1 SSH服务基本介绍 SSH 服务是Secure Shell Protocol 的简写,是安全的Shell协...

  • Linux重点知识

    ## SSH(secure shell)协议 单词含义 安全的外壳 SSH客户端<-----------...

  • essential ssh

    什么是SSH Secure Shell (SSH) 是一种加密网络协议,主要用作以下用途: secure data...

网友评论

      本文标题:SSH - Secure Shell

      本文链接:https://www.haomeiwen.com/subject/miaakxtx.html