当前位置 主页 > 服务器问题 > Linux/apache问题 >

    windows远程linux命令,windows远程linux命令是什么

    栏目:Linux/apache问题 时间:2021-02-08 20:04

      可直接通过git的bash.exe执行
      本地Windows:
      477_deploy.cmd文件内容如下:
      "C:Program FilesGitbinbash.exe"-c'scp/c/tmp/*.jar tiaxia c9t26477.itcs.hpecorp.net:/home/tiaxia/'
      "C:Program FilesGitbinbash.exe"-c'ssh tiaxia c9t26477.itcs.hpecorp.net"sudo/home/tiaxia/replace.sh"'
      注意,要把wdindows的public key["C:Userstiaxia.sshid_rsa.pub"]放入c9t26477.itcs.hpecorp.net的authorized_keys文件中
      远程Linux c9t26477.itcs.hpecorp.net
      [tiaxia c9t26477.ssh]$pwd
      /home/tiaxia/.ssh
      [tiaxia c9t26477.ssh]$ll
      total 12
      -rw-r--r--1 tiaxia ldap 396 Jul 6 11:03 authorized_keys
      -rw-------1 tiaxia ldap 1671 Mar 24 02:56 id_rsa
      -rw-r--r--1 tiaxia ldap 414 Mar 24 02:56 id_rsa.pub
      [tiaxia c9t26477.ssh]$vi authorized_keys
      ssh-rsa AAAAB*************