远程连接

作者: 青禾tester | 来源:发表于2019-04-21 23:17 被阅读0次

    windows连接linux:

    λ ssh nicole@172.10.10.10                 //进入远程机器
    
    nicole@172.10.10.10's password:       //输入远程机器密码
    
    Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-34-generic x86_64)
    
    * Documentation:  https://help.ubuntu.com
    
    * Management:    https://landscape.canonical.com
    
    * Support:        https://ubuntu.com/advantage
    
    31 packages can be updated.
    
    0 updates are security updates.
    
    *** 需要重启系统 ***
    
    Last login: Mon Nov 19 16:59:14 2018 from 172.10.10.112        //进入远程机器成功
    
    nicole@nicole:~$ ls                      //查看所有文件
    
    nicole  examples.desktop  package.json 
    
    nicole@nicole:~$ cd nicole           //进入文件夹nicole
    
    nicole@nicole:~/nicole$ ls
    
    android-sdk-linux  node-v8.12.0.tar.gz 
    
    jdk1.8.0_181      node-v8.12.0   
    
    nicole@nicole:~/nicole$ exit          //退出远程机器
    
    logout
    
    Connection to 172.10.10.10 closed.
    

    windows 连接堡垒机:

    ssh nicole@b-cc-bl01 -p 6666             //进入堡垒机
    
    Password:                                           //进入堡垒机密码
    
    Verification code:
    
    Last login: Thu Nov 22 13:17:05 2018 from 10.10.11.11
    
    ###    欢机
    
            1) 输入 进唯
    
            2) 输索
    
            3) 输的
    
            4) 输的
    
            5) 输主
    
            6) 输.
    
            7) 输.
    
            8) 输.
    
            9) 输
    
            0) 输
    
    Opt or ID>: b-cc-offline
    
    Only match Host:  b-cc-offline
    
    "post" [New File]
    
    Last login: Thu Nov 22 13:18:05 2018 from 10.9.25.71
    
    [work@b-cc-offline ~]$ vi post.txt
    

    相关文章

      网友评论

        本文标题:远程连接

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