/embedded-linux-scripts

Set of script to make easier the connection and browsing of remote hosts through ssh. Written in Python 3

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Embedded Linux and remote host connection scripts

Set of scripts to make easier the connection and browsing file systems of remote hosts through ssh. Written in Python 3

Adrian Remonda 2016

Requirements

  • python3
  • ssh

Install

    ~$ ./install.py

Setup and customize

  1. Create a generic initialization file. This will create a configuration file called el.conf in the current directory. This file will determine the ip address of the host and some other options.
    ~$ elinit
  1. Customize the el.conf file created in the previous step
    user="ad"               # remote login user name
    ip="localhost"          # remote host address or domain name
    file_manager="nautilus" # File manager can specify Nautilus, Dolphin or any other
    serial_port=""          # Serial port device path. E.g. "/dev/ttyUSB0"
    default_remote_path=""  # Remote host default path. E.g. '/home/user/src'

Use

Ping the remote host

~$ elping

Connect using ssh

~$ elconn

To browse remote file system

It will run the file manager configured in step 2

~$ elfs

Connect using the serial port

~$ elserial

To avoid writing the remote password everytime

The public key will be copied to the remote host

~$ elsetup_remote_host    

Todos

  • Have one script, instead of having them separated. Should include autocomplete with TAB
  • Add scp or rsync command wrapper

License

  • GPL v2

Free Software