portforwarding

Vagrant Port Forwarding not working

北战南征 提交于 2019-11-30 05:28:28
问题 I've installed CouchDB on my vagrant 0.9.0 box that is running CentOS 6.2 . In Vagrantfile I've added config.vm.forward_port 5984, 5985 . After reloading vagrant i attempt to curl the address: curl -v localhost:5985 with poor results. * About to connect() to localhost port 5985 (#0) * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 5985 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3 > Host:

“reject HostKey” when connecting to remote host through jumphost with JSch

有些话、适合烂在心里 提交于 2019-11-30 05:12:37
问题 Need to SSH to destination host through jumphost. Had tried the same mentioned in JSch JumpHosts example. Session[] sessions = new Session[2]; Session session = null; sessions[0] = session = jsch.getSession(getUserName(), "jumphost1.com", 22); session.setPassword(getHostPassword()); UserInfo userInfo = new UserInfo(); userInfo.setPassword(getHostPassword()); session.setUserInfo(userInfo); Properties prop = new Properties(); prop.put("StrictHostKeyChecking", "no"); prop.put(

PuTTY configuration equivalent to OpenSSH ProxyCommand

 ̄綄美尐妖づ 提交于 2019-11-30 03:46:20
I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using Linux this is no problem with the ssh -W command. In PuTTY I can't find the options to create such a connection. Example under Linux ( ~/.ssh/config ): Host MyHostToConnectTo Hostname xx.xx.xx.xx User root Identityfile ~/.ssh/id_rsa ProxyCommand ssh MySshProxyServer -W %h:%p Anyone knows how to use such a config in PuTTY? The equivalent in PuTTY is "local proxy command". You can use the plink.exe with

How to forward a subdomain to a new port on the same IP address using Apache? [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 21:50:30
I have a NAS/Server running at home 24/7 and run many different services on it. I have got a domain name pointing to it now, and was wondering if it would be possible to create sub-domains that point to different ports for different services. For example: http://subsonic.mydomain.com --> XXX.XXX.XXX.XXX:4040 http://minecraft.mydomain.com --> XXX.XXX.XXX.XXX:25565 http://files.mydomain.com --> XXX.XXX.XXX.XXX:4082 I have a single D-LINK router that currently port forwards all these ports to my NAS/Server whose IP is 192.168.0.104. EDIT: The server is running Ubuntu 12.04. What service or proxy

Tunnel any kind of TCP traffic through HTTP/s

China☆狼群 提交于 2019-11-29 19:34:25
I am looking for a software to tunnel RDP or other binary TCP traffic through a HTTPS tunnel. Because many clients only have HTTP/S permitted (only port 80 and 443 open in the firewall). But there's a need to forward RDP (and other protocols) from machines in DMZ to clients. 7 View large function description Is there any kind of open source or enterprise software for this problem? Bad solutions Solutions like F5 big ip has the problem that I have to create the connection configuration with this software. If it would be possible to do this by use of an api it would be an good solution. But i

JSch multiple tunnels/jumphosts

廉价感情. 提交于 2019-11-29 12:46:29
I'm not sure if this is caused by using a private key instead of password for the port forwarding but here's what I'm trying to do I need to forward local port 3308 all the way to the my SQL DB at 3306. I can run things like this all together in terminal on my local ssh -L 3308:localhost:3307 username@jumpbox "ssh -L 3307:mysqlDB:3306 username@server" Or run the first part on my local and then the second part on the jumpbox. Both works fine and I can connect to my localhost:3308. The problem comes when I start using JSch. Here is my code JSch jsch = new JSch(); jsch.addIdentity("~/.ssh/id_rsa"

How to use jsch with ProxyCommands for portforwarding

两盒软妹~` 提交于 2019-11-29 08:43:43
I want to ssh to a machine which is behind a proxy and do a portforwarding after that in my java program. (To be able to ssh to the box I should have ssh'ed to the proxy machine first). I usually do that by having the following entries in my ~/.ssh/config file: ProxyCommand ssh proxyhost.com -t nc %h %p IdentityFile /home/username/username_dsa_key And then I run the following to do portforwarding to map hostmachine.com:54321 to my localhost:12345: ssh -A -L12345:localhost:54321 hostmachine.com Now I want to do these with Jsch library but I can't figure out how to connect to the second host

Vagrant port forwarding for Mysql

无人久伴 提交于 2019-11-29 01:39:44
I am trying to setup port forwarding in Vagrantfile to connect to guest mysqld from host system, but get reading initial communication packet error. Host: Yosemite, Guest: Trusty, vagrant 1.7.4 Vagrantfile(host): config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 3306, host: 3309 my.ini(guest): bind-address = 127.0.0.1 8080 forwarding works like a charm. mysql -h127.0.0.1 -uroot -p from guest also works. mysql -h127.0.0.1 -P 3309 -uroot -p from host results with reading initial communication packet error. When I telnet from host, the connection

PuTTY configuration equivalent to OpenSSH ProxyCommand

我的未来我决定 提交于 2019-11-29 00:44:01
问题 I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using Linux this is no problem with the ssh -W command. In PuTTY I can't find the options to create such a connection. Example under Linux ( ~/.ssh/config ): Host MyHostToConnectTo Hostname xx.xx.xx.xx User root Identityfile ~/.ssh/id_rsa ProxyCommand ssh MySshProxyServer -W %h:%p Anyone knows how to use

Connection Reset when port forwarding with Vagrant

我与影子孤独终老i 提交于 2019-11-28 20:59:02
问题 I have Vagrant/VirtualBox running an Ubuntu 12.04 LTS OS. I have configured Vagrant to forward the guest port 8000 to my host port 8888. [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] -- 8000 => 8888 (adapter 1) [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! When the virtual machine starts up, I start a Django dev server