1.0 KiB
1.0 KiB
Client
!!! success "PyserSSH 5.0x" In new version of PyserSSH or version 5.0 It very easy to use and more infomation for client
Don't worry for old code because in client it has backward compatibility for old code
Like "client["channel"]" to "client.channel"
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