草庐IT

remote-ssh

全部标签

python - 如何使用 paramiko ssh 对象向 Windows 和 Linux 服务器发送远程调用?

我正在使用Python2.7.6和Paramiko模块(在Linux服务器上)连接到Windows服务器并发送一些命令并获取输出。我有一个连接功能,它获取远程Windows服务器的IP、用户名和密码,当发生这种情况时我得到一个sshobj。我的问题是如何使用它发送远程调用?如果是本地系统,我只会说“os.system”,但不确定远程调用。有人可以帮忙吗?我的代码如下所示:sys.path.append("/home/me/code")importlibs.ssh_connectassshssh_obj=ssh.new_conn(IP,username,password)stdin,st

外网SSH远程连接linux服务器,看这一篇就够了

文章目录视频教程1.LinuxCentOS安装cpolar2.创建TCP隧道3.随机地址公网远程连接4.固定TCP地址5.使用固定公网TCP地址SSH远程转载自内网穿透工具的文章:无公网IP,SSH远程连接LinuxCentOS服务器【内网穿透】本次教程我们来实现如何在外公网环境下,SSH远程连接家里/公司的LinuxCentOS服务器,无需公网IP,也不需要设置路由器。视频教程公网SSH远程LinuxCentOS服务器【内网穿透】1.LinuxCentOS安装cpolarcpolar官网:https://www.cpolar.com/cpolar支持一键自动安装脚本cpolar安装(国内使用

windows - 使用 cygwin 时 vagrant up "Error: Could not create directory '/home/username/.ssh'"

使用vagrant1.8.1,当尝试为已经初始化的盒子执行“vagrantup--providervirtualbox”时,我得到一个“错误:无法创建目录‘/home/用户名/.ssh'."按照此处的说明-https://atlas.hashicorp.com/centos/boxes/7the以下:命令:vagrantinitcentos/7;vagrantup--providervirtualbox输出:Therewasanerrorwhenattemptingtorsyncasyncedfolder.Pleaseinspecttheerrormessagebelowformore

windows - 有没有简单的方法在 xampp for windows 中安装 SSH?

有没有简单的方法在xamppforwindows中安装SSH? 最佳答案 我不这么认为。即使可以,您也无法像在*nix机器上期望的那样无缝访问apache和mysql。如果您已经死定了,最好的办法是只安装openssh服务器(http://sshwindows.sourceforge.net/)并确保您要使用的工具在路径中。不过,我总是发现在Windows机器上使用ssh带来的麻烦多于它的值(value)。 关于windows-有没有简单的方法在xamppforwindows中安装SSH

windows - 在 Windows 上尝试通过 SSH 连接到 Bitbucket 时出现 "Server refused to allocate pty"错误

我正在尝试将Mercurial连接到PC上的Bitbucket,这真的很难。我按照此处的说明操作:http://www.codza.com/mercurial-with-ssh-setup-on-windows我正在运行设置为我的私钥的选美。我在命令行输入了这个:plink-vhg@bitbucket.org我得到以下输出:C:\mypath>plink-vhg@bitbucket.org"skippedforbriefness"AccessgrantedOpenedchannelforsessionServerrefusedtoallocateptyStartedashell/com

ruby net/ssh channel 死了吗?

我试图将输入和处理分成两部分,以便不必指定提示(如wait_for)。问题是收到命令但从未处理过。从get_input线程调用channel进程(它在on_process中打印puts)但什么也没有发生。(on_process仅在调用on_data之后调用一次然后channel才处于事件状态?==true在这一点上仍然)ENV['PATH']='H:\mydocu~1\usrbin\ansi140\x86;'+ENV['PATH']`ansicon.exe-p`require'net/ssh'hostname="server"username="user"password="passw

windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly"

在Windows上的wsl2中的Ubuntu19.04中执行此操作数天。$gitclonehttps://github.com/gohugoio/hugo.gitCloninginto'hugo'...error:RPCfailed;curl56GnuTLSrecverror(-12):ATLSfatalalerthasbeenreceived.fatal:Theremoteendhungupunexpectedly我尝试重新编译git以使用openssl,但没有做任何事情。我尝试了ssh和https。我尝试修改http的git设置。我修改了各种git内存设置。目前StackOverf

windows - Emacs 中的路径名转换,用于从远程(ssh 编译)错误文件名中查找本地源文件路径

在Emacs中是否可以利用某种通用的路径名重写/规范化工具来允许将编译模式下的源文件转换为基于远程路径的本地路径?我希望使用符号链接(symboliclink),但这在Windows中对我不起作用。我正在运行GNUEmacs23.1.1,并尝试了cygwin-mount和w32-symlinks.el(使用(customize-option'w32-symlinks-handle-shortcuts));我无法获得open-file/dired/completions或compile-modenext-error以遵循Windows快捷方式或cygwin符号链接(symboliclin

windows - git bash (cache passphrase key) : Can't get the ssh-agent to run on windows, 修改了.bashrc 和.profile

谁能帮忙,我在Windows上,git正在将我的源设置为github。当然,每次我想pull/推或任何我需要为github提供key的密码时。根据我所阅读的内容,我需要编辑~/.profile或~/.bashrc并输入一些文本seehttps://help.github.com/articles/working-with-ssh-key-passphrases我已经这样做了很多次,实际上我在两个文件中都输入了它,但是当我打开一个新的GitBash窗口时,似乎没有任何东西运行(我假设某些东西应该运行并根据上面的链接询问我的密码).当然,每次Push或Pull都会再次要求我提供密码。我显然

windows - Git 推送不起作用,但 "git clone"和 SSH 可以

我设置了一个Debian服务器,它使用SSH进行shell访问和gitrepos。我在其上创建了一个裸存储库并使用ssh能够将其克隆到我的Windows8工作站,但是当尝试将更改推送回Debian服务器时,我得到了此处描述的错误:Readfromremotehost174.52.5.192:Connectionresetbypeerfatal:sha1file''writeerror:invalidargumentfatal:Theremoteendhungupunexpectedlyerror:failedtopushsomerefsto'git@174.52.5.192:/home