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

  1. Open FortiClient.
  2. Pick the right tunnel from the "VPN Name" list.
  3. Type or confirm the username and password. Click Connect.
  4. Approve the push on your phone (for example FortiToken), or type the code.
  5. Wait until FortiClient shows "Connected".
  6. Open Remote Desktop Connection (mstsc) and type the server address.
  7. Enter the Windows password in the "Windows Security" dialog.
  8. 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:

How Ferrykey does it

  1. You click a saved connection in the tray menu.
  2. Ferrykey opens FortiClient, selects your tunnel and presses Connect with your saved login.
  3. If a different FortiClient tunnel is connected, it disconnects that one first.
  4. It waits while you approve 2FA on your phone.
  5. It checks two things: the FortiClient adapter is up and the Remote Desktop port on your server answers.
  6. It opens Remote Desktop. The login comes from Windows Credential Manager, so no password dialog is needed.
  7. 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

  1. Make sure the tunnel already exists in FortiClient.
  2. Download Ferrykey and run it. It installs for your user, without admin rights.
  3. Create the vault. Set two master passwords; either one opens it.
  4. Add a connection: a FortiClient step (tunnel name, username, password) and a Remote Desktop step (server, username, password).
  5. Click the connection in the tray menu. Approve 2FA on your phone.

Limitations

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

  1. FortiClient'ı açın.
  2. "VPN Name" listesinden doğru tüneli seçin.
  3. Kullanıcı adı ve şifreyi yazın ya da onaylayın. Connect'e tıklayın.
  4. Telefonunuzdaki bildirimi onaylayın (ör. FortiToken) ya da kodu yazın.
  5. FortiClient "Connected" gösterene kadar bekleyin.
  6. Uzak Masaüstü Bağlantısı'nı (mstsc) açın, sunucu adresini yazın.
  7. "Windows Güvenliği" penceresine Windows şifresini girin.
  8. 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:

Ferrykey bunu nasıl yapıyor

  1. Tepsi menüsünden kayıtlı bir bağlantıya tıklarsınız.
  2. Ferrykey FortiClient'ı açar, tünelinizi seçer ve kayıtlı bilgilerle Connect'e basar.
  3. Farklı bir FortiClient tüneli bağlıysa önce onu keser.
  4. Siz telefondan 2FA'yı onaylarken bekler.
  5. İki şeyi kontrol eder: FortiClient bağdaştırıcısı açık mı, sunucunuzdaki Uzak Masaüstü portu yanıt veriyor mu.
  6. Uzak Masaüstü'nü açar. Oturum bilgisi Windows Kimlik Bilgileri Yöneticisi'nden gelir, şifre penceresi gerekmez.
  7. 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

  1. Tünelin FortiClient'ta zaten tanımlı olduğundan emin olun.
  2. Ferrykey'i indirin ve çalıştırın. Yönetici hakkı olmadan, kullanıcınıza kurulur.
  3. Kasayı oluşturun. İki ana şifre belirleyin; ikisinden biri kasayı açar.
  4. Bağlantı ekleyin: bir FortiClient adımı (tünel adı, kullanıcı, şifre) ve bir Uzak Masaüstü adımı (sunucu, kullanıcı, şifre).
  5. Tepsi menüsünde bağlantıya tıklayın. Telefondan 2FA'yı onaylayın.

Sınırlar

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.