copssh

使用ControlPersist特性自动登陆SSH服务器

拟墨画扇 提交于 2020-07-28 07:09:03
本文介绍一种自动登陆SSH服务器的方法,那就是使用ControlPersist特性。 背景介绍 很多公司都使用静态密码+动态密码的方式登陆跳板机,某些还会强制一个动态密码只能登陆一次,于是我们面临着等一分钟才能登陆一次跳板机,很不方便。本文介绍一种在本机的设置,免除每次输入密码的方法。 实现方法 此功能是使用SSH的ControlPersist特性,SSH版本必须是5.6或以上版本才可使用ControlPersist特性。 多条连接共享 如果你需要在多个窗口中打开到同一个服务器的连接,而不想每次都输入用户名,密码,或是等待连接建立,那么你可以配置SSH的连接共享选项,在本地打开你的SSH配置文件,通常它们位于~/.ssh/config,然后添加下面2行(ControlMaster配合ControlPath一起使用): ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r 现在试试断开你与服务器的连接,并建立一条新连接,然后打开一个新窗口,再创建一条连接,你会发现,第二条连接几乎是在瞬间就建立好了。 Windows用户 如果你是Windows用户,很不幸,最流行的开源SSH客户端Putty不一定支持这个特性,但是Windows上也有OpenSSH的实现,比如Copssh。 文件传输 连接共享不止可以帮助你共享多个SSH连接

how i can execute windows batch file from UNIX-AIX?

╄→гoц情女王★ 提交于 2019-12-24 10:38:32
问题 How can I execute windows batch files from UNIX-AIX, where I installed copssh? 回答1: Does this work? From the Unix box: $ rsh -l user_name windows_host_name "C:\scan.bat" 回答2: You can't unless it's very basic, i.e. it doesn't call any Windows specific programs, in which case you're probably better off transcoding it to bash or similar. 回答3: The best way will be translating it into bash. 回答4: Check out winexe. 来源: https://stackoverflow.com/questions/3830966/how-i-can-execute-windows-batch-file

Clone works, remote push doesn't. Remote repository over copssh

你说的曾经没有我的故事 提交于 2019-11-27 04:40:46
I've "setup-a-msysgit-server-with-copssh-on-windows", following Tim Davis' guide and I was now learning how to use the git commands, following Jason Meridth's guide , and I have managed to get everything working fine, but now I can't pass the push command. I have set the server and the client on the same machine (for now), win7-x64. Here is some info of how things are set up: CopSSH Folder : C:/SSH/ Local Home Folder : C:/Users/rvc/ Remote Home Folder: C:/SSH/home/rvc/ # aka /cygdrive/c/SSH/home/rvc/ git remote rep : C:/SSH/home/rvc/myapp.git # empty rep At '/SSH/home/rvc/.bashrc' and 'Users

SSH Git Server on Windows

独自空忆成欢 提交于 2019-11-27 01:52:11
首先,需要安装两个工具: 1、Git,Windows下的Git,还是msysGit比较好。 安装简单,除了修改安装路径外,一路默认即可,相关配置请见:《msysGit的配置及中文支持》 2、SSH,可以用CopSSH,可以在Windows上启动SSH服务,而不仅是客户端。 注意:安装CopSSH的时候会给Windows添加一个管理员用户,虽然这个用户已经被添加了,但是CopSSH还不能使用它,需要在CopSSH控制面板里设置一下。还有就是这个用户会在Windows登录界面显示出来,要避免这个问题,请记下刚才安装时添加的用户名,然后替换下面代码中的“(user)”(不含引号),并添加到注册表: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList] "(user)"=dword:00000000 另外,最好把msysGit和CopSSH安装目录下的bin目录加入Windows的系统环境变量的PATH内,以方便调用。 这时,从其它机器用git用户通过ssh登录以后,可以执行ls,cd等基本命令。但是git任然不能运行。所以,也就还不能通过这个ssh来发布git版本库了

Clone works, remote push doesn't. Remote repository over copssh

守給你的承諾、 提交于 2019-11-26 11:18:12
问题 I\'ve \"setup-a-msysgit-server-with-copssh-on-windows\", following Tim Davis\' guide and I was now learning how to use the git commands, following Jason Meridth\'s guide, and I have managed to get everything working fine, but now I can\'t pass the push command. I have set the server and the client on the same machine (for now), win7-x64. Here is some info of how things are set up: CopSSH Folder : C:/SSH/ Local Home Folder : C:/Users/rvc/ Remote Home Folder: C:/SSH/home/rvc/ # aka /cygdrive/c