Skip to content

jackalbyte/mikrotik-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mikrotik SSH

Python script to send SSH command to Mikrotik device.

Setup

python3 setup.py install

Usage

python3 mikrotik-ssh/mikrotik_ssh.py [-h] -a ADDRESS [--port PORT] [-u USERNAME] [-p PASSWORD] -c COMMAND [COMMAND ...]

optional arguments:

Argument Discription
-h, --help show this help message and exit
-a, --address Hostname or IP address of device
--port Port to connect to on the remote host (default: 22)
-u, --username User to connect to on the remote host (default: admin)
-p, --password Password (default: blank)
-k, --keyfile Keyfile for auth ( default: None)
-c, --command Command for execute

example:

$python mikrotik_ssh.py -a 10.10.10.1 -p passw0RD!1 -c 'system identity print'

or

$python mikrotik_ssh.py --address 10.10.10.1 --username admin --password passw0RD!1 --command 'system identity print'

output:

$name: RT-01

About

Python script to send SSH command to Mikrotik device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages