<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>satoru_takeuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/satoru_takeuchi/</author_url>
  <blog_title>覚書</blog_title>
  <blog_url>https://satoru-takeuchi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>知ってる人には当たり前なのかもしれないですが、自分用のメモです。 先に結論を書くと次の通り。 sshでリモートマシンにログインするのではなく&lt;ssh command&gt;によってコマンドを叩く場合には、ttyが割り当てられない。sshに-tオプションを付与すると、端末を無理矢理割り当てられる cronなどのttyが割り当てられていない環境からは-tオプションだけでは不十分で、-ttオプションが必要 事の経緯は、固定IPアドレスが無い自宅マシン(回線はフレッツ光)にインターネットからアクセスしたいというものでした。DDNSを使うんではなく、固定IPを持っている自前VPSと&quot;who am i&quot;を使えば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsatoru-takeuchi.hatenablog.com%2Fentry%2F2017%2F04%2F11%2F223932&quot; title=&quot;sshを使ってリモートマシンでコマンドを叩く際の注意点 - 覚書&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-11 22:39:32</published>
  <title>sshを使ってリモートマシンでコマンドを叩く際の注意点</title>
  <type>rich</type>
  <url>https://satoru-takeuchi.hatenablog.com/entry/2017/04/11/223932</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
