I need to specify some terminal modes, specifically the TTY_OP_ISPEED/TTY_OP_OSPEED
in our SSH
client. However for the life of me I can't figure out the correct format.
Reading http://www.ietf.org/proceedings/56/I-D/draft-ietf-secsh-connect-16.txt tells me that they are encoded into a byte stream, but there is absolutely no indication of HOW.
I'm guessing I need to format my string similar to:
byte[] terminalModes = "TTY_OP_ISPEED=36000;TTY_OP_OSPEED=36000;".getBytes();
or:
byte[] terminalModes = "128 36000 129 36000".getBytes();
Our program is using a ssh client implemented de.mud.jta.plugin/ch.ethz.ssh2 however I don't think this matters as I can see they are simply using the byte[] as is. (I'm using the http://www.ganymed.ethz.ch/ssh2/javadoc/ch/ethz/ssh2/Session.html#requestPTY(java.lang.String, int, int, int, int, byte[]) method to pass in the termnial modes)
Any examples of valid pty-req strings would be appreciated.
Thanks in advance!