Skip to content
blacknon edited this page Feb 24, 2019 · 14 revisions

The default PATH of the configuration file is ~ /.lssh.conf. This is a sample at configuration file.

Basic Setting

.lssh.conf

[server.ServerName1]
addr = "192.168.0.101"                 # server address
port = "22"                            # port number
user = "user"                          # connect user
user = "password"                      # connect password
note = "this is a test. password auth" # note text

[server.ServerName2]
addr = "192.168.0.102"                 # server address
port = "22"                            # port number
user = "user"                          # connect user
key = "/path/to/key"                   # connect private key path
note = "this is a test. key auth"      # note text

[server.ServerName3]
addr = "192.168.0.103"                 # server address
port = "22"                            # port number
user = "user"                          # connect user
key = "/path/to/key"                   # connect private key path
keypass = "password"                   # private key passphrase
note = "this is a test. key auth"      # note text

Common settings

You can set common server settings. You can set common settings for each include file (overwrite the entire common setting with include file).

[common]
port = "10022"
user = "user"

[server.ServerName1] # user port=10022,user=user
addr = "192.168.0.101"
user = "password"
note = "this is a test. password auth"

[server.ServerName2] # user port=10022,user=user
addr = "192.168.0.102"
key = "/path/to/key"
note = "this is a test. key auth"

[server.ServerName3]
addr = "192.168.0.103"
port = "22"                            # overwrite common port number
user = "test"                          # overwrite common user
key = "/path/to/key"
keypass = "password"
note = "this is a test. key auth"

Include server config file

Include config file settings and path. (only common,server config)

.lssh.conf

# [include.include1] # When writing individually
# path = "~/.lssh.conf.include1"

[includes]
path = [
     "~/.lssh.conf.include1"
    ,"~/.lssh.conf.include2"
]

.lssh.conf.include1

[server.ServerName1]
addr = "192.168.0.101"
port = "22"
user = "user"
user = "password"
note = "this is a test. password auth"

Logging terminal log

You can record the terminal log. The following variables can be specified in the log file path directory. Log file name is in the format "YYYYmmdd_HHMMss_ServerName.log".

  • <Date> ... YYYYMMDD
  • <Hostname> ... ServerName

.lssh.conf

[log]
enable = true       # bool logging
timestamp = true    # add timestamp line head
dirpath = "/path/to/<Date>_<Hostname>/logdir"  

[ssh,http,socks5] Proxy server settings

User local bashrc file

(Sample) Change terminal profile(or terminal background,front color)

Clone this wiki locally