Lost In Cyberia Posted August 6, 2013 Share Posted August 6, 2013 Hey everyone... I'm just stretching my wings a bit and seeing how things work. If I wanted to write a script that had me ssh to my remote computer, how can this be done? If the script runs without me, how can I enter the required password? the same is true for any time of authentication method like scp file transferring... There must be a way via script around this? Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted August 7, 2013 Share Posted August 7, 2013 If your SSH has certs in place, there is no need to type a password and you can just call ssh directly. You can also give ttyrec a shot: http://0xcc.net/ttyrec/index.html.en http://hak5.org/episodes/haktip-56 Here is another one found via Google: http://linux.die.net/man/1/script I am pretty sure Darren used another one besides ttyrec, but I can't remember the other one. If you see this Darren, refresh my memory :D. Quote Link to comment Share on other sites More sharing options...
Sitwon Posted August 9, 2013 Share Posted August 9, 2013 I think he used 'expect' in one episode. I believe expect does some magic to solve password entry problem (that is, some tools like ssh won't read a password from stdin, it needs to actually be typed at the keyboard). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.