我正在通过ssh创buildSOCKS 5隧道: ssh -D 1337 -f -C -c blowfish -q -N user@host 我只需要一个快速和松散的客户端连接,然后不再需要它。 我希望它自动激活x秒后closures。 我试过postfixing sleep 10 ,这将甚至可能保持打开,直到连接的客户端断开连接,但10秒后closures。 当我运行这个: ssh -D 1337 -f -C -c blowfish -q -N user@host sleep 10隧道从不closures。 我可以在bash脚本中睡10,然后find这个过程并杀死它,但是我觉得它可能比这更简单。
在更新并重新启动gcloud及其SSH连接后,使用gcloud update , gcloud init ,然后使用gcloud compute config-ssh –remove && gcloud compute config-ssh ,有时和不可预知地连接到服务器,假设ssh hostname有时会发展为如下: 关于Google云端平台的vim ~/.ssh/config是: 20 # Google Compute Engine Section 21 # 22 # The following has been auto-generated by "gcloud compute config-ssh" 23 # to make accessing your Google Compute Engine virtual machines easier. 24 # 25 # To remove this […]
我的负载均衡,自动扩展Elastic Beanstalk环境在两个AZ中使用公共和私有子网的VPC。 ELB和EC2在相同的公共子网中。 EC2被赋予了公共知识产权。 EC2s在一个安全组中,入口规则打开端口22到0.0.0.0/0 (我也试过用我的IP) EC2与我正在使用的密钥对相关联(它对此VPC之外的其他EC2起作用)。 EC2s是健康的。 但… ssh -i "~/.ssh/my.pem" [email protected] …导致“操作超时”。 我错过了什么明显的东西? 编辑:公共子网的ACL上的入站规则: 入场规则EC2的SG: 公有子网的详细信息: Subnet ID: subnet-3cf38775 | Public subnet 2 Availability Zone: eu-west-1b IPv4 CIDR: 10.0.2.0/24 Route Table: 10.0.0.0/16 -> local 0.0.0.0/0 -> nat-01b4b81a02e336d3c
(编辑)这个问题也发生在我的笔记本电脑使用根和我的用户,这可能会得到问候,当试图用SSH用户。 然后尝试了一下这个可靠的手册,它也提出了回购的错误。 试过另一个,克隆完美无瑕。 这个问题似乎并不是用git,docker或者ssh,而是用gitlabconfiguration。 在一个Dockerfile上,我正在尝试运行gitlab的公司服务器上托pipe的私有存储库,并使用非标准的ssh端口进行设置 。 这是我期望运行(在sshconfiguration文件中的一些参数旁边) RUN git clone [email protected]:GroupName/repo_name.git 我已经检查过的东西: 回购有一个部署密钥,它是活跃的。 使用Ansible而不是Docker进行自动化,可以连接和克隆仓库。 密钥名为id_rsa,它位于〜/ .ssh / 试过用ssh-agent,似乎没问题(虽然我在configuration文件中指定,不需要它) Identity added: /opt/.ssh/id_rsa (/opt/.ssh/id_rsa) 〜/ .ssh / config具有以下内容: Host * StrictHostKeyChecking no PubkeyAcceptedKeyTypes +ssh-rsa PasswordAuthentication no User git ForwardAgent yes Identityfile /opt/.ssh/id_rsa # /opt is the home of the user RUNning the command in docker port 22022 […]
debug1: Reading configuration data /Users/Fannity/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug2: resolving "52.207.214.32" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 52.207.214.31 [52.207.214.31] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file hummer2.pem type -1 debug1: key_load_public: No such file or directory debug1: identity file hummer2.pem-cert type -1 […]
我有一个VPN在我的Linksys路由器上运行。 我已经能够configuration一个客户端连接到它,并可以通过Web界面访问我的FreeNAS服务器,没有任何问题。 我也可以ping它。 但是,我无法访问正在运行的Jails。 我有一个启用SSH的监狱,当我在本地networking,我可以通过端口22访问监狱,没有问题。 当我通过VPN进行外部连接时,我无法通过SSH连接,Jail也不会响应ping。 有什么我失踪?
我正在尝试制作一个EC2实例的副本,然后再执行可能会破坏重要依赖关系的风险安装。 我创build了一个实例“A”的AMI,并将其作为实例“B”启动。 在AWS控制台中,将SSH连接到实例B的指示与实例A的指示不同。更具体地说,我使用以下方法连接到实例A: ssh -i "keypair.pem" [email protected] 但例如B,当点击控制台中的“连接”时,亚马逊build议: ssh -i "keypair.pem" [email protected] 根与Ubuntu的重要区别。 SSHlogin到实例A工作正常,但不是实例B.当以root身份连接时,我收到一条消息说, 请以用户“ubuntu”而不是用户“root”login,并且不能进入。当作为Ubuntu连接时,我收到一个消息说权限被拒绝(publickey) 。 我尝试了(1)使用与实例A完全相同的keypair.pem和(2)启动B时创build一个新的密钥 – 都不工作。
我使用ssh-keyscan来获取几个SSH服务器的公钥。 我的一个设备只支持DSA / ssh-dss。 使用“-t dsa”选项的ssh-keyscan不能获取公钥,而Nmap脚本ssh-hostkey实际上能够获得它。 SSH-键扫描: weberjoh@nb15-lx:~$ ssh-keyscan -t dsa ssg-mgmt # ssg-mgmt:22 SSH-2.0-NetScreen NMAP: weberjoh@nb15-lx:~$ nmap –script ssh-hostkey ssg-mgmt Starting Nmap 7.01 ( https://nmap.org ) at 2017-10-11 16:00 CEST Nmap scan report for ssg-mgmt (192.168.120.3) Host is up (0.0026s latency). rDNS record for 192.168.120.3: ssg-mgmt.webernetz.net Not shown: 998 filtered ports PORT STATE SERVICE […]
我正在尝试使用pam来公开使用sshlogin,并使用yubikey或google_authenticator。 testing时,我有一个SSH会话打开,以保持自己login。幸运的是,我的连接下降,我登出了自己。 如果我尝试loginssh客户端请求我的yubikey第一次,然后为我的谷歌totp 3次。 但是我无法成功login。 有没有什么办法可以login,而无需启动恢复? 我目前的pam.d / sshdconfiguration文件看起来像这样 # Standard Un*x authentication. #@include common-auth # try YubiKey fist and if it fails try the google authenticator auth [success=0 default=ignore] pam_yubico.so id=22748 debug auth required pam_google_authenticator.so #auth required pam_unix.so nullok # Disallow non-root logins when /etc/nologin exists. account required pam_nologin.so # Uncomment and edit /etc/security/access.conf […]
我试图通过SSH发送以下命令到我所有的客户端服务器。 我的目的是将文件从主控主机复制到客户端服务器。 文件“myservers”包含我的客户端服务器的全限定主机名 for i in $(cat myservers);do echo;echo "$i";ssh -i id.sshkey root@"$i"; rsync -avzrph –progress -e "ssh -i /root/.ssh/id.key" root@MASTER_HOST:/home/ /home/;done 但是上面的命令在我的本地机器上失败了。 它成功地SSH客户端主机,但不会运行rsync部分。 请分享你的想法。