<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoppy0066</author_name>
  <author_url>https://blog.hatena.ne.jp/yoppy0066/</author_url>
  <blog_title>とりあえずphpとか</blog_title>
  <blog_url>https://kimagureneet.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>はじめに あんまりやる機会なさそうだけど、次やるときのために一応メモ。はまったこととしては、エラーは出ないのに一部のファイルが65536バイトまでしか転送できていなかったということ・・・転送でファイルサイズの上限があるのかなとか思ったんですけど、そういうことではなくてちゃんとssh接続を切断すれば解決でした ssh2_exec($connection, &quot;exit&quot;); 実装 $host = &quot;&quot;; // ホスト名とかipアドレス $port = &quot;&quot;; // ポート番号 $user = &quot;&quot;; // sshアカウント $pass = &quot;&quot;; // sshパスワード $src_path = &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimagureneet.hatenablog.com%2Fentry%2F2015%2F08%2F21%2F090947&quot; title=&quot;【php】ssh2_scp_sendでファイル転送する方法メモ - とりあえずphpとか&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>2015-08-21 09:09:47</published>
  <title>【php】ssh2_scp_sendでファイル転送する方法メモ</title>
  <type>rich</type>
  <url>https://kimagureneet.hatenablog.com/entry/2015/08/21/090947</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
