{"id":415,"date":"2012-05-25T09:26:24","date_gmt":"2012-05-24T23:26:24","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=415"},"modified":"2012-05-25T09:26:24","modified_gmt":"2012-05-24T23:26:24","slug":"rsync-and-ssh-connections","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2012\/05\/rsync-and-ssh-connections\/","title":{"rendered":"Rsync and SSH connections"},"content":{"rendered":"<p>I&#8217;ve been annoyed by a message when scripting my rsync backups for some time now.<\/p>\n<p>&#8220;stdin: is not a tty&#8221;<\/p>\n<p>which I spent a while trying to sort out today.<\/p>\n<p>Turns out that it is associated with the setup of the shell on the servers where I manage some hosted sites.<\/p>\n<p>In my rsync commands I have embedded the ssh commands and adding -q(quiet) to make the messages go away makes no difference. Adding a -t for tty setting makes no difference and adding -T is ineffective as well.<\/p>\n<p>Hmm, according to the SSH syntax, repeating the -t may work.\u00a0 Yep, it does.<\/p>\n<p>ssh -qtt will suppress the message about the tty!<\/p>\n<p>Except, that I now get an error &#8220;tcgetattr: Invalid argument&#8221; which is triggered apparently by the second &#8216;t&#8217;.<\/p>\n<p>I&#8217;ve left it. I now get my logs of the rsync transactions that I was not getting with the tty error message and the other error does not impact anything that I can see.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been annoyed by a message when scripting my rsync backups for some time now. &#8220;stdin: is not a tty&#8221; which I spent a while trying to sort out today. Turns out that it is associated with the setup of the shell on the servers where I manage some hosted sites. In my rsync commands [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-415","post","type-post","status-publish","format-standard","hentry","category-linux-servers-and-software"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=415"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/415\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}