Solved

IFS Cloud Middle Tier Configuration - Remote Deployment

  • 6 March 2024
  • 6 replies
  • 53 views

Badge +3

Are there any users who have found that they needed to do additional configurations to the supplied Ubuntu machine provided from the Build Place? I have my Ubuntu machine running in a vSphere environment hosted internally and was assigned a hostname. I turned on the machine, ran the change_-hostname command to the correct name. From the Windows Management server, when I try to run the script ps> .\main.ps1 -resource 'KEY' I get a connection timeout where I cannot SSH to the ubuntu box. It could be a firewall issue, but this has not been the case with other customers in the past. Does anyone have any suggestions on configurations needed inside the VM?

icon

Best answer by decdknudson 7 March 2024, 17:12

View original

6 replies

Userlevel 5
Badge +12

Hi Dan,

Was the IFS remote (Ubuntu VM) host name changed prior to initiating an SSH connection from the Windows Management server or after? If a SSH connection was previously established between the two hosts a private key to the old host name may exist. Can you please share the exact error message?

In the above scenario, you can clear the old private key with the following command:

ssh-keygen -R <old dns for ifs-remote>

. This should be done on the Windows Management server.

If still having trouble, are you able to SSH to your IFS remote from any other PC? The command is

ssh ifs@<fqdn or ip address>

Best regards -- Ben

Userlevel 7
Badge +31

Hi @decdknudson,

We have seen some issues on certain occasions when the hostname has upper case letters. If your hostname contains uppercase letters, please try and change the hostname to all lowercase and see if that helps. 

Hope this helps!

Badge +3

The hostname was set prior to trying to SSH from the Windows Management server. I’m unable to SSH from any PC. I am able to SSH to the local ubuntu VM from the VM if that makes sense. Here is my Windows Management Server error. 

 

Below shows I can SSH to the localhost from the ubuntu machine, but not from the hostname

 

Userlevel 5
Badge +12

Since you are able to connect from localhost, it looks like the SSH server is up and listening on port 22. "Connection timed out" may be a firewall issue. Is there a firewall between IFS Remote and Windows Management?

Just to check, from Windows Management does DNS gaunce.us.lmco.com resolve to the expected IP address? You can verify with

nslookup gaunce.us.lmco.com

Are you able to SSH to IFS Remote using the IP address?

Best regards -- Ben

Badge +3

My initial thought was a firewall issue as well, but I was shown that the firewall between the two servers is accepting traffic. I can do an nslookup of the hostname as well as the IP address. I’m also not able to SSH using the IP address. 

Badge +3

I have figured out my problem. In my case, I had to configure a static IP address on the Ubuntu VM. I followed instructions I found from this link https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-20-04/.

 

After I applied the changes, I was able to SSH to the Ubuntu machine. Hopefully if someone else has this problem this will help.

 

Dan

Reply