Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Firasbg
New Contributor III

how to access from outside (my host ) with putty to internal VM ubuntu server of fortigate VM

how to access from outside (my host ) with putty to internal VM ubuntu server of fortigate VM 7.2.0?

my ubuntu server is inside the fortigate and i want to access it from outside(my host) with putty

Firasbg_0-1658426028436.png

 

1 Solution
larsbollas
Staff
Staff

Hi Firasbg,

Traffic flow is like:

<Host>-><internet>-><Fortigate>-><internal VM>

Try to configure VIP in the fortigate to forward SSH traffic from outside to internal VM.

KB:
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Virtual-IP-VIP-port-forwarding-configurati...

Regards.
Lars Bollas
NSE4

View solution in original post

5 REPLIES 5
larsbollas
Staff
Staff

Hi Firasbg,

Traffic flow is like:

<Host>-><internet>-><Fortigate>-><internal VM>

Try to configure VIP in the fortigate to forward SSH traffic from outside to internal VM.

KB:
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Virtual-IP-VIP-port-forwarding-configurati...

Regards.
Lars Bollas
NSE4
Firasbg
New Contributor III

thanks @larsbollas  for the response , i follow the steps of the KB but it's not working i can ping with my server to outside but the inverse with ssh(putty) not working .

I configured the interface of the server with LAN segment and the @of my server is 192.168.37.2 i try from putty but don't working i do VIP ...

Firasbg_0-1658510577985.png

 

 

larsbollas

Hi Firasbg,

Can you verify if SSH is open in your server. 
From the Fortigate CLI:
# exe telnet 192.168.37.2 22

 

 

Regards.
Lars Bollas
NSE4
Firasbg
New Contributor III

i do and this the result : 

FortiGate-VM64 # exe telnet 192.168.37.2 22
Trying 192.168.37.2...
Connected to 192.168.37.2.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3

 

and when i click enter they appeared to me this new two lines :

FortiGate-VM64 # exe telnet 192.168.37.2 22
Trying 192.168.37.2...
Connected to 192.168.37.2.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3
(Invalid SSH identification string.
Connection closed by foreign host.)

 

this reply of my cmd means that the ssh port is open in my server ?

Firasbg_0-1658557055126.png

 

Firasbg
New Contributor III

Oh thanks @larsbollas  it solved i can access to the inside server with SSH from the WAN(outside) interface of fortigate 

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors