我有一个SSH隧道非常奇怪的问题。 我想使用SSH隧道连接到远程MySQL服务器。 过去我创造了这个隧道,取得了巨大的成功,但是由于一个奇怪的原因,现在还不行。 隧道创build为:ssh [email protected] -T-L-6603:localhost:3306。 当我尝试连接到远程MySQL服务器时,连接在本地 MySQL服务器上执行! 所以,我试图使用ssh [email protected] -T-L-6603:remote.com:3306这不是所有的方法,而是手册页所做的。 没有成功:(我所尝试的所有东西都无法正常工作,现在我感到非常困惑,那个设置有什么问题?
我(终于)在Win7下得到了sshd的工作 – 好吧。 sshd以用户“cyg_server”运行。 我能够使用相同的用户名成功ssh到我的电脑。 但是,如果我尝试使用我的正常(Windows)用户名ssh,它尝试为我的login会话分配一个pty失败。 例如,'sshd -D -d -d -d'的输出包含这个 debug1: Entering interactive session for SSH2. debug2: fd 4 setting O_NONBLOCK debug2: fd 5 setting O_NONBLOCK debug1: server_init_dispatch_20 debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384 debug1: input_session_request debug1: channel 0: new [server-session] debug2: session_new: allocate (allocated 0 max 10) debug3: session_unused: […]
我一直在努力在中央服务器上有一个脚本来做一些事情并输出一个.tar.gz文件(请参阅暂时将STDOUTredirect到另一个文件描述符,但仍然屏幕 )。 我也有交换SSH密钥,所以现在从客户端机器我可以执行脚本在我的主要服务器,并输出结果到客户端.tar.gz文件,同时看到脚本的所有其他输出(STDERR): me@client:~$ ssh auto@remoteserver /usr/local/bin/myscript.sh > content.tar.gz // shows the output of the STDERR here… me@client:~$ tar ztf content.tar.gz content/file.txt content/foobar.txt … 但是如果我强制执行这个命令,把命令选项放在~/.ssh/authorized_keys : #/home/auto/.ssh/authorized_keys file command="/usr/local/bin/myscript.sh",from="client" ssh-rsa 0UYmshd5FSDFf2fd… 并执行以下,不起作用: me@client:~$ ssh auto@remoteserver > content.tar.gz // shows **NOTHING** me@client:~$ tar ztf content.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 […]
我公司在多台服务器上pipe理相当大量的生产服务器。 按照惯例,我们的生产服务器只允许从less数网关主机进行SSH访问。 这些Web服务器中的大多数都运行使用基于rsync的部署脚本在一个主网关主机上运行的PHP项目。 也就是说,我们正在使用Django构build一些大型应用程序,并希望使用Fabric来pipe理部署。 Fabric 还不支持SSH隧道,但似乎在其路线图中 。 我的select似乎是: 摒弃我们的网关 – 主机规则,倾向于遵循Django部署的最佳实践。 把我自己的Django部署脚本放在bash中,安装在我们的网关主机上,并从Fabric本地触发。 也许我在这里问了一个错误的问题,Fabric并不是正确的select,但感觉真的很自然,我想尽可能地使用它。
我明白,通过调整/etc/ssh/sshd_config的LogLevel ,我可以在身份validation成功时logging指纹,但是我想要做的是查看实际上不成功的密钥的指纹。 实际的问题是无知的客户端连接到服务器使用错误的密钥,如果我可以看到指纹validation失败,这将有很大的帮助。 操作系统是Ubuntu Precise Pangolin, openssh-server (1:5.9p1-5ubuntu1) 。 这可能吗?
有一天我试图通过SSH连接到我的远程服务器,因为我一直有。 但是现在当我尝试连接它大约60秒后才超时。 我跑 service ssh start 这告诉我,作业已经运行:ssh。 我然后跑了 $netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 1972/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 1972/dovecot tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2030/mysqld tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1972/dovecot tcp 0 […]
我试图scp文件到/ var / www,因为我在玩apache。 要移动文件我做scp -i <ec2-shh-key> localfile root@<ec2-instance-ip>:/var/www/fileremote 。 但是这给了我一个错误: Please login as the user "ubuntu" rather than the user "root". 我怎么解决这个问题? 编辑:我已经发现这个超级用户的问题,首先scp'ing文件到一个非sudo目录,然后通过SSH传递一个sudo mv命令来移动该文件。 有没有办法做到这一步,只是一个步骤?
请参阅类似: 不知从何处,ssh_exchange_identification:由远程主机closures的连接 今天,6月19日试图ssh到相同的主机ssh回答 ssh_exchange_identification: Connection closed by remote host 两次额外的尝试失败 ssh -v $RWS OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to Real-World-Systems.com [174.127.119.33] port 22. debug1: Connection established. debug1: identity file /Users/dgerman/.ssh/id_rsa type 1 debug1: identity file /Users/dgerman/.ssh/id_rsa-cert type -1 debug1: identity file /Users/dgerman/.ssh/id_dsa […]
我已经在旧笔记本电脑上安装Debian Squeeze来充当testing平台。 我已经安装了OpenSSH并编辑了/etc/ssh/sshd_config来使用ssh密钥并禁止密码validation。 但是,我可以通过serFISH.com用密码login。 在input密码时,我得到: Connecting as lemmy@*myipaddress* on port 5001… /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old lemmy@my*ipaddress*'s password: Linux saturn 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual […]
我有几个.ISO DVD备份文件存储在虚拟化Win2008服务器上。 有没有简单的方法使用ESX SSHterminal挂载存储在VMDK文件中的NTFS分区,以便我可以将其直接复制到数据存储VMFS,或者必须将文件从Win2008机器SFTP到ESX主机?