<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>scp  |  塞翁失馬</title>
	<atom:link href="https://hbirds.mydns.jp/tag/scp/feed/" rel="self" type="application/rss+xml" />
	<link>https://hbirds.mydns.jp</link>
	<description>禍福は糾える縄の如し</description>
	<lastBuildDate>Sat, 31 Dec 2022 08:24:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://hbirds.mydns.jp/wp-content/uploads/2022/12/cropped-akaza-32x32.png</url>
	<title>scp  |  塞翁失馬</title>
	<link>https://hbirds.mydns.jp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SCPでOCIにファイル転送</title>
		<link>https://hbirds.mydns.jp/scp%e3%81%a7oci%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e8%bb%a2%e9%80%81/</link>
		
		<dc:creator><![CDATA[hbirds]]></dc:creator>
		<pubDate>Thu, 29 Dec 2022 19:05:20 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[scp]]></category>
		<guid isPermaLink="false">http://hbirds.mydns.jp/?p=320</guid>

					<description><![CDATA[OCIで作ったVMのワードプレスにテーマファイルをローカルのPCから転送しようとしてちょっと悩んだ結果、以下のSCPコマンドを実行することで上手く行った。実際には、転送先のパーミッションの問題でエラーが出たが、一時的にchomodコマンドで777とすることで無事に転送できた。 当然ながら、SCPコマンドは、SSHプロトコルを使用しているため、以下のようにSSHが実行できる環境であることが前提になる。]]></description>
										<content:encoded><![CDATA[
<p>OCIで作ったVMのワードプレスにテーマファイルをローカルのPCから転送しようとしてちょっと悩んだ結果、以下のSCPコマンドを実行することで上手く行った。実際には、転送先のパーミッションの問題でエラーが出たが、一時的にchomodコマンドで777とすることで無事に転送できた。</p>



<pre class="wp-block-code terminal"><code>~$ sudo scp -i /home/hbirds/ssh-key-2022-12-27.key -P 22 cocoon-child-master-1.1.3.zip ubuntu@138.2.34.232:/var/www/html/wordpress/wp-content/themes</code></pre>



<p>当然ながら、SCPコマンドは、SSHプロトコルを使用しているため、以下のようにSSHが実行できる環境であることが前提になる。</p>



<pre class="wp-block-code terminal"><code>~$ ssh -p 22 ubuntu@138.2.34.232 -i ssh-key-2022-12-27.key
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1025-oracle aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Thu Dec 29 19:22:17 UTC 2022
</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
