web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16

(1) ShareShare
ReportReport
Posted on by 197
I connect to my cloud hosted systems using Bastion not RDP.  So I set the network to deny incoming RDP connections.
Then bastion fails with this error:
Connection Error
The target machine is unreachable. Please verify that your NSG rules allow traffic to ports 22 (SSH) and 3389 (RDP) from the private IP address 168.63.129.16.
 
I fixed it by doing as it says, and making those new rules to have a lower priority number than the deny RDP access rule:
 
I hope this helps people in the community.
I have the same question (0)
  • Suggested answer
    jt1024 Profile Picture
    197 on at
    Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16
    Hello all,
    Just a follow up.  You only need the inbound port rules if you're using the new (2024 March era) Developer SKU Bastion.  For more see:
     
    You can change what type of Bastion you have following this guide: https://learn.microsoft.com/en-us/azure/bastion/upgrade-sku
    But the developer pricing is not listed, though the other pages linked above indicate it is a lower cost option since there is no additional features or scaling.
     
    I hope this is helpful to others!
  • jt1024 Profile Picture
    197 on at
    Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16
    Hello Mohammad, and Hana,
    I've tried marking one of your responses as an answer to move this post to 'verified' but the website just presents a spinning circle indefinitely.  So I guess it just has to stay as it is for now.
    - Jim
    P.S.: I found more info, replied again, marked that as suggested answer, then verified that. Done!
  • Mohamed Amine Mahmoudi Profile Picture
    26,304 Super User 2025 Season 2 on at
    Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16
    Hi,
     
    Thank you for sharing
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16
    Hi,
    Thank you for your sharing, as you  said it will be helpful for others with similar issues. You can mark it as verified to make it clear to more people.
    Best Regards,
    Hana

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 895

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 811 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 787 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans