Hello, On Mon, 23 Nov 2009, Suresh Kumar wrote: > How about logging the ssh operations. will script command works? > I mean, > 1) Login to another linux box using ssh > 2) doing some operations (ran some commands) > > How do i log this using linux command (script)
Did you try the obvious method? $ script /var/tmp/remote_ssh_session $ ssh remote_host .... login with some commands to remote session and logout $ exit Don't forget to remove your password/passphrase from the script file if you are not using out-of-band authentication[1] for ssh. Regards, Kapil. [1] Out-of-band authentication for ssh means that ssh uses a public-key which is unlocked in a different terminal session from the one used to make the connection. This is managed with ssh-agent or gpg-agent etc. -- _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc