How to connect FortiClient VPN and open Remote Desktop automatically (with 2FA)
Updated 1 November 2026 · Ferrykey 0.10.2 beta · Windows 10/11
Short answer
- Windows has no built-in way to chain "FortiClient connect → approve 2FA → open Remote Desktop".
- Ferrykey does the chain from one tray click. It opens FortiClient, picks the tunnel, presses Connect, waits for your 2FA approval, then opens Remote Desktop signed in.
- It never skips 2FA. You still approve on your phone.
The problem
Many IT staff and consultants reach customer servers the same way. First a FortiClient VPN tunnel, then Remote Desktop to a machine behind it.
Each time you repeat the same clicks. With several customers you also have to remember which tunnel goes with which server.
The manual way today
- Open FortiClient.
- Pick the right tunnel from the "VPN Name" list.
- Type or confirm the username and password. Click Connect.
- Approve the push on your phone (for example FortiToken), or type the code.
- Wait until FortiClient shows "Connected".
- Open Remote Desktop Connection (
mstsc) and type the server address.
- Enter the Windows password in the "Windows Security" dialog.
- If another tunnel was still up, disconnect it first. Otherwise the server may not answer.
That is about eight steps and two or three passwords per connection.
Why a simple script is hard
We tried the obvious shortcuts with FortiClient 7.4 before building Ferrykey. What we saw:
- Starting
FortiClient.exe directly from another program crashed it in our tests. Starting it through its shortcut worked.
- Its COM interface failed on every call on our machines.
- The 2FA approval happens on your phone. A script cannot know how long you need.
- "VPN is up" is not enough. Another tunnel can be up and still not reach your server.
- The Windows 11 "Windows Security" password dialog is protected. Other programs cannot type into it.
How Ferrykey does it
- You click a saved connection in the tray menu.
- Ferrykey opens FortiClient, selects your tunnel and presses Connect with your saved login.
- If a different FortiClient tunnel is connected, it disconnects that one first.
- It waits while you approve 2FA on your phone.
- It checks two things: the FortiClient adapter is up and the Remote Desktop port on your server answers.
- It opens Remote Desktop. The login comes from Windows Credential Manager, so no password dialog is needed.
- If that session is already open, it brings the window to the front instead.
A connection can have more steps. Example: OpenVPN to the office, then FortiClient, then Remote Desktop. A step can be skipped when your public IP matches a fixed IP you enter.
Set it up
- Make sure the tunnel already exists in FortiClient.
- Download Ferrykey and run it. It installs for your user, without admin rights.
- Create the vault. Set two master passwords; either one opens it.
- Add a connection: a FortiClient step (tunnel name, username, password) and a Remote Desktop step (server, username, password).
- Click the connection in the tray menu. Approve 2FA on your phone.
Limitations
- Windows 10/11 64-bit only.
- Field-tested with FortiClient VPN 7.4. Other FortiClient versions may behave differently.
- WireGuard, OpenVPN, Windows built-in VPN and Cisco Secure Client steps are beta and not field-tested.
- It opens Microsoft's Remote Desktop client. There are no tabs, and no SSH or VNC.
- If a policy or your
Default.rdp forces a password prompt, Windows may still ask. Ferrykey tells you; it does not type into that dialog.
- It drives the FortiClient window. A future FortiClient update could break that until Ferrykey is updated.
- The installer is not code-signed yet, so SmartScreen shows a warning on first run.
- Beta software. Keep your manual way available.
Price
Free for up to 3 connections. Pro is $49/year for unlimited connections on up to 3 of your PCs. 14-day refund.
FortiClient VPN'e bağlanıp Uzak Masaüstü'nü otomatik açmak (2FA ile)
Güncelleme: 1 Kasım 2026 · Ferrykey 0.10.2 beta · Windows 10/11
Kısa cevap
- Windows'ta "FortiClient bağlan → 2FA onayla → Uzak Masaüstü aç" zincirini kuran yerleşik bir yol yok.
- Ferrykey bu zinciri tepsiden tek tıkla yürütür. FortiClient'ı açar, tüneli seçer, Connect'e basar, 2FA onayınızı bekler, sonra Uzak Masaüstü'nü oturum açık hâlde başlatır.
- 2FA'yı asla atlamaz. Onayı yine telefonunuzdan verirsiniz.
Sorun
Birçok BT çalışanı ve danışman müşteri sunucusuna aynı yoldan ulaşır. Önce FortiClient VPN tüneli, sonra arkasındaki makineye Uzak Masaüstü.
Her seferinde aynı tıklamalar tekrarlanır. Birkaç müşteri varsa hangi tünelin hangi sunucuya ait olduğunu da hatırlamanız gerekir.
Bugün elle nasıl yapılıyor
- FortiClient'ı açın.
- "VPN Name" listesinden doğru tüneli seçin.
- Kullanıcı adı ve şifreyi yazın ya da onaylayın. Connect'e tıklayın.
- Telefonunuzdaki bildirimi onaylayın (ör. FortiToken) ya da kodu yazın.
- FortiClient "Connected" gösterene kadar bekleyin.
- Uzak Masaüstü Bağlantısı'nı (
mstsc) açın, sunucu adresini yazın.
- "Windows Güvenliği" penceresine Windows şifresini girin.
- Başka bir tünel açık kaldıysa önce onu kesin. Yoksa sunucu yanıt vermeyebilir.
Bağlantı başına yaklaşık sekiz adım ve iki üç şifre.
Basit bir betik neden zor
Ferrykey'i yazmadan önce FortiClient 7.4 ile kestirme yolları denedik. Gördüklerimiz:
FortiClient.exe başka bir programdan doğrudan başlatılınca testlerimizde çöktü. Kısayolu üzerinden başlatınca çalıştı.
- COM arayüzü bizim makinelerimizde her çağrıda hata verdi.
- 2FA onayı telefonda olur. Betik ne kadar bekleyeceğini bilemez.
- "VPN açık" yetmez. Başka bir tünel açık olup sunucunuza ulaşmıyor olabilir.
- Windows 11'in "Windows Güvenliği" şifre penceresi korumalıdır. Başka programlar içine yazamaz.
Ferrykey bunu nasıl yapıyor
- Tepsi menüsünden kayıtlı bir bağlantıya tıklarsınız.
- Ferrykey FortiClient'ı açar, tünelinizi seçer ve kayıtlı bilgilerle Connect'e basar.
- Farklı bir FortiClient tüneli bağlıysa önce onu keser.
- Siz telefondan 2FA'yı onaylarken bekler.
- İki şeyi kontrol eder: FortiClient bağdaştırıcısı açık mı, sunucunuzdaki Uzak Masaüstü portu yanıt veriyor mu.
- Uzak Masaüstü'nü açar. Oturum bilgisi Windows Kimlik Bilgileri Yöneticisi'nden gelir, şifre penceresi gerekmez.
- O oturum zaten açıksa yenisini açmaz, pencereyi öne getirir.
Bir bağlantıda daha fazla adım olabilir. Örnek: ofise OpenVPN, sonra FortiClient, sonra Uzak Masaüstü. Genel IP'niz girdiğiniz sabit IP ile aynıysa bir adım atlanabilir.
Kurulum
- Tünelin FortiClient'ta zaten tanımlı olduğundan emin olun.
- Ferrykey'i indirin ve çalıştırın. Yönetici hakkı olmadan, kullanıcınıza kurulur.
- Kasayı oluşturun. İki ana şifre belirleyin; ikisinden biri kasayı açar.
- Bağlantı ekleyin: bir FortiClient adımı (tünel adı, kullanıcı, şifre) ve bir Uzak Masaüstü adımı (sunucu, kullanıcı, şifre).
- Tepsi menüsünde bağlantıya tıklayın. Telefondan 2FA'yı onaylayın.
Sınırlar
- Yalnız Windows 10/11 64-bit.
- Sahada FortiClient VPN 7.4 ile test edildi. Diğer FortiClient sürümleri farklı davranabilir.
- WireGuard, OpenVPN, Windows yerleşik VPN ve Cisco Secure Client adımları beta; sahada test edilmedi.
- Microsoft'un Uzak Masaüstü istemcisini açar. Sekme yok; SSH ve VNC yok.
- Bir ilke ya da
Default.rdp dosyanız şifre sormayı zorluyorsa Windows yine sorabilir. Ferrykey bunu söyler; o pencereye yazmaz.
- FortiClient penceresini kullanarak çalışır. Bir FortiClient güncellemesi, Ferrykey güncellenene kadar bunu bozabilir.
- Kurulum dosyası henüz kod imzalı değil; ilk çalıştırmada SmartScreen uyarısı çıkar.
- Beta yazılım. Elle bağlanma yolunuzu elinizin altında tutun.
Fiyat
3 bağlantıya kadar ücretsiz. Pro yıllık 49 $: sınırsız bağlantı, kendi 3 bilgisayarınıza kadar. 14 gün iade.