<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tacke</author_name>
  <author_url>https://blog.hatena.ne.jp/tacke/</author_url>
  <blog_title>tackeのブログ</blog_title>
  <blog_url>https://tacke.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>rsyncはデフォルトではsshでリモートサーバーに接続しています。 リモートサーバーに接続するときidentity fileに任意のファイルを指定したりポートをwell-knownポート以外にしてたりするとrsyncを素朴に実行してもsshのデフォルト設定で接続しに行くので .ssh/config を適切に設定しておく必要があります。 ただまあそういうのがめんどくさいことってありますよね。あるんです。 そういう時は -e オプションを利用してsshのオプションを設定しましょう。 例えば以下のようにします。 rsync -avz -e 'ssh -i ~/.ssh/my_id_rsa -p 1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftacke.hateblo.jp%2Fentry%2F2021%2F08%2F19%2F225230&quot; title=&quot;rsyncするときsshにオプションを渡したい - tackeのブログ&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>2021-08-19 22:52:30</published>
  <title>rsyncするときsshにオプションを渡したい</title>
  <type>rich</type>
  <url>https://tacke.hateblo.jp/entry/2021/08/19/225230</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
