Hello,
Here is my config:
* my proxmox host is set on *public_ip*
* my vm1 contains a gitlab up and running with source code for project1
* my vm2 contains a test version of project1
I rerouted all traffic to *public_ip* port 2222 to vm1 port 22 => I can therefore pull the code from gitlab from any machine OUTSIDE of my private network (meaning, outside of the proxmox network).
I'm trying to git pull project1 from vm2 through the public IP. Here is my command to test it:
# ssh -vvv git_mydomain_com -p 2222
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to git_mydomain_com [*public_ip*] port 2222.
debug1: connect to address *public_ip* port 2222: Connection refused
ssh: connect to host git_mydomain_com port 2222: Connection refused
I try the same command but using the internal IP for vm1:
# ssh -vvv *internal_192_ip* -p 22
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to *internal_192_ip* [*internal_192_ip*] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
[...]
internal_192_ip*'s password:
Question: how can i reach vm1 from vm2 using the git_mydomain_com:2222 approach?
Here is my config:
* my proxmox host is set on *public_ip*
* my vm1 contains a gitlab up and running with source code for project1
* my vm2 contains a test version of project1
I rerouted all traffic to *public_ip* port 2222 to vm1 port 22 => I can therefore pull the code from gitlab from any machine OUTSIDE of my private network (meaning, outside of the proxmox network).
I'm trying to git pull project1 from vm2 through the public IP. Here is my command to test it:
# ssh -vvv git_mydomain_com -p 2222
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to git_mydomain_com [*public_ip*] port 2222.
debug1: connect to address *public_ip* port 2222: Connection refused
ssh: connect to host git_mydomain_com port 2222: Connection refused
I try the same command but using the internal IP for vm1:
# ssh -vvv *internal_192_ip* -p 22
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to *internal_192_ip* [*internal_192_ip*] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
[...]
internal_192_ip*'s password:
Question: how can i reach vm1 from vm2 using the git_mydomain_com:2222 approach?