zoukankan      html  css  js  c++  java
  • ubuntu ssh

    ssh下载

    sudo apt-get install openssh-server

    sudo apt-get install openssh-client

    如果下载不了,在这下载http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/

    配置

    $scp .ssh/authorized_keys test@10.0.0.182:/home/test/
    The authenticity of host '10.0.0.182 (10.0.0.182)' can't be established. 
    RSA key fingerprint is 11:fa:8b:27:68:89:5c:83:b0:16:ea:4b:8b:41:4b:00. 
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '10.0.0.182' (RSA) to the list of known hosts. 
    Permission denied (publickey). 

    将/etc/ssh/sshd_config文件中的PasswordAuthentication no 改为PasswordAuthentication yes,

    然后重启 /etc/init.d/ssh restart

    查看ssh是否运行

    ps aux | grep ssh

    scp用法:

    scp 计算机名@IP:文件名    本机文件名

    如: scp xxx@192.168.16.104:~/work/a.txt ./a.txt

    scp挎贝目录

            scp -r xxx@192.168.16.104:~/work ./work

  • 相关阅读:
    抽象类abstract
    final关键字特点
    继承ExtendsFour
    继承(继承中构造方法的关系)
    继承ExtendsTwo-super&this
    继承ExtendsOne
    静态
    构造方法与setXxx方法
    15.8
    15.7
  • 原文地址:https://www.cnblogs.com/bing11/p/3966323.html
Copyright © 2011-2022 走看看