How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?

The Bitvise SSH Client user interface does not provide an option to start the profile automatically when Windows 10 starts up. Instead, you can create a shortcut to Bitvise with the "-loginOnStartup" option. The steps below are a lot easier than creating a batch file.

  1. In your Bitvise Profile, select these options:
    • Uncheck "Open Terminal"
    • Uncheck "Open SFTP"
    • If using password authentication, check "Store encrypted password in profile"
  2. Click the "Save profile as" button and save the profile, e.g. to "%USERPROFILE%\Documents\BitviseProfile.tlp". You may see a message letting you know that sensitive information will be saved in the profile.
  3. Open the folder "%PROGRAMFILES(X86)%\Bitvise SSH Client" in one Explorer window, and the "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" folder in another Explorer window. (If you copy and paste the locations into Explorer, they will automatically expand to the correct folders for your system.)
  4. Right-click on BvSsh.exe and drag it to the Startup folder, and select "Create shortcuts here" from the context menu. Rename the new shortcut like "auto-start bitvise ssh tunnel"
  5. Right-click the new shortcut and select "Properties"
  6. In the "Target" setting, enter the following, taking care to set the profile path to the actual path of your Bitvise profile:

    "C:\Program Files (x86)\Bitvise SSH Client\BvSsh.exe" -profile="C:\Users\Me\Documents\BitviseProfile.tlp" -loginOnStartup

  7. Click "OK"

  8. Double-click the shortcut and verify that Bitvise started up correctly
  9. You can also verify that if you go to "Startup Apps" in Windows Settings, you see an entry for "Bitvise SSH Client"
  10. Reboot windows and confirm that Bitvise started up correctly