Skip to content

Client

client is use for infomation and control user

this is structure

{
    "current_user": None,
    "channel": channel,
    "last_activity_time": None,
    "connecttype": None,
    "last_login_time": None,
    "windowsize": {},
    "x11": {},
    "prompt": None,
    "inputbuffer": None,
    "peername": peername
}

current_user is username

channel is for socket channel

last_activity_time is last activity time (timestamp)

connecttype has 2 type: ssh and sftp

last_login_time is last login time (timestamp)

windowsize is terminal size

x11 is x11 info from client

prompt is the symbol or message indicating that the system is ready to receive a command from the user.

inputbuffer is buffer from inputsystem

peername is user peername