ghostx2 / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

support auto login amd post-login command #270

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Provide user and password in the session configuration, and some commands after 
post-login command, so a new session can be login automatically and some 
commands can be executed after login.

Thanks a lot, superputty is really a cool thing than my previous one!

Original issue reported on code.google.com by hewanxi...@gmail.com on 5 Dec 2012 at 2:52

GoogleCodeExporter commented 9 years ago
Username is already supported and you can auto login with ssh keys.

I suggest using ssh keys to login, passwords pushing is insecure and very 
cumbersome to push to the remote server. 
The main reason is that SP cannot determine if the ssh prompt is ready and 
waiting for a username and password to be entered (ie, heavy busy server), in 
which SP would push the password but prompt isn't there yet or responds slowly 
and eventually the login simply fails.

Original comment by djtrem...@gmail.com on 7 Jan 2013 at 10:52

GoogleCodeExporter commented 9 years ago
There is a lot situations where you can't use ssh keys. For example Cisco 
routers with plain telnet shell.

As for slow respond let's look at PuttyConnectionManager. It is a simply 
timeouts: wait 2 second, send login, wait 1 second, send password. If it's 
failed because of busy server, user just will try again and again.

Original comment by pa...@zagrebelin.ru on 30 Jan 2013 at 5:19