3.2.2 • Published 8 months ago

cisco-vpn-rdp-connecter v3.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

cisco-vpn-rdp-connecter

Connect to Cisco AnyConnect VPN and open a Microsoft Remote Desktop (RDP) window

See FAQ for more details and background.

CLI

Install

npm install --global cisco-vpn-rdp-connecter

Usage

$ 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

API

Install

npm install cisco-vpn-rdp-connecter

Usage

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);

Exports

connectToVpn(server, group, username, password)

openRdpWindow(server)

connectToVpnAndOpenRdp(vpnCredentials, rdpServer)

isCiscoAnyConnectInstalled()

isCiscoVpnConnected()

isRdpWindowOpened()

getAllCiscoVpnGroups(server)

getCiscoVpnDefaults()

getRdpDefaults()

disconnectFromVpn()

closeRdpWindow()

FAQ

Why this CLI?

Instead of:

  1. open Cisco AnyConnect
  2. type in credentials and connect
  3. open Microsoft Remote Desktop
  4. 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.

3.2.2

8 months ago

3.2.1

9 months ago

3.1.2

10 months ago

3.2.0

10 months ago

3.1.1

11 months ago

3.1.0

11 months ago

3.0.0

11 months ago

2.4.2

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.1

2 years ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago