title: Auto Populate VPN Connection (Python / Bash)
body: <p>I want to create a Python script that connects to a vpn and auto populates the username and password then makes the connection. It's an openvpn connection that prompts firstly for the username followed by the password.</p>
  <p>The username and password can be stored in the script itself of in a seperate .txt. I know this is bad practice but this is a personal thing (not corporate) and also only a temporary thing so the security risk is minimal</p>
  <p>This is what I have so far -</p>
  <pre><code>#!/bin/bash
  
  echo &quot;hey&quot; $user
  cd /home/vpn/
  openvpn nameofvpnfile.ovpn
  
  $SHELL
  </code></pre>
  <p>at that point when ran the connection is made and im promted for a username and then creds.</p>