{"id":4148,"date":"2015-01-27T19:12:47","date_gmt":"2015-01-27T11:12:47","guid":{"rendered":"http:\/\/rmohan.com\/?p=4148"},"modified":"2015-01-27T19:12:47","modified_gmt":"2015-01-27T11:12:47","slug":"how-to-share-ssh-command-line-with-someone-via-screen","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4148","title":{"rendered":"How to share ssh command line with someone via screen"},"content":{"rendered":"<p>Use screen to share an ssh session<br \/>\nIt&#8217;s quite easy to share an ssh session with someone remote so that they can view the ssh session.  This process works well if everyone involved has root access.  Read further below if this is not the case.  To begin, screen must be installed to create the screen.  Once installed, create the screen as follows:<\/p>\n<p>screen -L -S <session name><\/p>\n<p>Provide the session name to the person you wish to view the ssh session, and they can join this screen as follows:<\/p>\n<p>screen -x <session name><\/p>\n<p>After the session is over, a .screenlog log is written, containing all the commands that were issued during the session.<\/p>\n<p>For those limited to non-root, multiuser screen may be a solution.  It is well documented here:<br \/>\nhttp:\/\/aperiodic.net\/screen\/multiuser<\/p>\n<p>Other tips I&#8217;ve found include using the script command.  I personally have not tried this one myself, but it looks like it should work depending on your use case:<\/p>\n<p>$ script -t 1 \/tmp\/screencast<\/p>\n<p>For those who wish to look on:<\/p>\n<p>$ tail -f \/tmp\/screencast<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use screen to share an ssh session It&#8217;s quite easy to share an ssh session with someone remote so that they can view the ssh session. This process works well if everyone involved has root access. Read further below if this is not the case. To begin, screen must be installed to create the screen. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4148"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4148"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4148\/revisions"}],"predecessor-version":[{"id":4149,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4148\/revisions\/4149"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}