<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2FPHP%2Fssh2</id>
	<title>User:Woozle/PHP/ssh2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2FPHP%2Fssh2"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/PHP/ssh2&amp;action=history"/>
	<updated>2026-07-01T21:12:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/PHP/ssh2&amp;diff=23310&amp;oldid=prev</id>
		<title>Woozle at 00:20, 8 December 2017</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/PHP/ssh2&amp;diff=23310&amp;oldid=prev"/>
		<updated>2017-12-08T00:20:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:20, 8 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I think I need to know more about what the actual problem is, but the internet has been unhelpful. Diagnostics, anyone?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I think I need to know more about what the actual problem is, but the internet has been unhelpful. Diagnostics, anyone?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Notes==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;I used [https://medium.com/php-7-tutorial/solution-how-to-compile-php7-with-ssh2-f23de4e9c319 these instructions] to install ssh2 support from PECL. It &#039;&#039;seemed&#039;&#039; to be happy... but I haven&#039;t been able to connect to anything. (Then again, I didn&#039;t try password auth.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/PHP/ssh2&amp;diff=23306&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;This works: &lt;syntaxhighlight lang=bash&gt;ssh root@waldorf.local&lt;/syntaxhighlight&gt; ...but this does not: &lt;syntaxhighlight lang=php&gt; echo &quot;Creating session...\n&quot;; $session = ssh2_...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/PHP/ssh2&amp;diff=23306&amp;oldid=prev"/>
		<updated>2017-12-07T15:51:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This works: &amp;lt;syntaxhighlight lang=bash&amp;gt;ssh root@waldorf.local&amp;lt;/syntaxhighlight&amp;gt; ...but this does not: &amp;lt;syntaxhighlight lang=php&amp;gt; echo &amp;quot;Creating session...\n&amp;quot;; $session = ssh2_...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This works:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;ssh root@waldorf.local&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
...but this does not:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=php&amp;gt;&lt;br /&gt;
echo &amp;quot;Creating session...\n&amp;quot;;&lt;br /&gt;
$session = ssh2_connect(&amp;#039;waldorf.local&amp;#039;, 22);&lt;br /&gt;
echo &amp;quot;Authorizing...\n&amp;quot;;&lt;br /&gt;
ssh2_auth_pubkey_file($session, &amp;#039;root&amp;#039;, &amp;#039;/root/.ssh/id_rsa.pub&amp;#039;,&amp;#039;/root/.ssh/id_rsa&amp;#039;);&lt;br /&gt;
echo &amp;quot;Getting sftp subsystem...\n&amp;quot;;&lt;br /&gt;
$sftp = ssh2_sftp($session);&lt;br /&gt;
echo &amp;quot;Opening...\n&amp;quot;;&lt;br /&gt;
//$r = fopen(&amp;quot;ssh2.sftp://$session/tmp/temp.txt&amp;quot;,&amp;#039;r&amp;#039;);&lt;br /&gt;
$r = fopen(&amp;quot;ssh2.sftp://$sftp/tmp/temp.txt&amp;quot;,&amp;#039;r&amp;#039;);&lt;br /&gt;
echo &amp;quot;Done.\n&amp;quot;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
After &amp;quot;Opening...&amp;quot;, I get &amp;lt;nowiki&amp;gt;&amp;quot;PHP Warning:  fopen(ssh2.sftp://Resource id #5/tmp/temp.txt): failed to open stream: operation failed in /var/www/apps/real/fileferret/test.php on line 11&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I think I need to know more about what the actual problem is, but the internet has been unhelpful. Diagnostics, anyone?&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>