Net::Dropbear::XS::SessionAccept - Manage how a command session should be handled by Dropbear.
This type of object is created and passed during the on_chansess_command hook. See Net::Dropbear::SSHd for details. There is no new method for this object, it is only created based on the struct from Dropbear.
All of these attributes are set to a defaults. if HOOK_COMPLETE is returned, they should be filled in with enough information to allow Dropbear to clean up afterwards. This means it will close file handles and send exit signals to child processes.
The index of the channel being opened. This is Read-Only.
Default: The current channel index
The command that will be ran. This can be changed to a new command and Dropbear will run the new command instead.
Default: The requested command
The pid of the child process
Default: 0 (no child process)
A boolean indicating that the request was for a command to be ran.
Default: From the request
A boolean indicating that this command was requesting a subsystem (SCP, SFTP, etc).
The file descriptor number that this channel will write to. On a command, this would be STDOUT.
Default: -1 (file closed)
The file descriptor number that this channel will read from. On a command, this would be STDIN.
The file descriptor number that this channel will write error messages to. On a command, this would be STDERR.
To install Net::Dropbear, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.