Connect to Cisco AnyConnect VPN and open a Microsoft Remote Desktop (RDP) window
See FAQ for more details and background.
npm install --global cisco-vpn-rdp-connecter
$ cisco-vpn-rdp-connecter --help
Usage
$ cisco-vpn-rdp-connecter
Commands
<none> Connect to both VPN and RDP
disconnect, d Disconnect from both VPN and RDP
status, s Show connection statuses for VPN and RDP
print-config, p Print the VPN and RDP config
Options
--setup, -s Setup the credentials for Cisco VPN and Microsoft RDP
--only-vpn, -o Only connect to VPN
--save Used together with --only-vpn to change the default command behavior
--show-password Show password in plain text when printing the password
npm install cisco-vpn-rdp-connecter
import {connectToVpnAndOpenRdp} from 'cisco-vpn-rdp-connecter';
const vpnCredentials = {
server: 'server.name',
group: '1',
username: 'knut',
password: 'super_secure_password'
};
const rdpServer = 'rdp.server.name';
await connectToVpnAndOpenRdp(vpnCredentials, rdpServer);
Instead of:
- open Cisco AnyConnect
- type in credentials and connect
- open Microsoft Remote Desktop
- select server and connect
Just open a terminal and type cisco-vpn-rdp-connecter
to do all that without the hassle.
I personally use this to efficiently connect to a remote work computer.