0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

楽天GoldへのFTP接続

Posted at

awsのec2でOS:centos7でサーバを作成しました。
firewallサービスは起動していません。
セキュリティーグループの設定はデフォルト状態になります。
ruby(バージョン:2.2.3)でFTP接続を試みたところ、以下のエラーとなりました。

rubyのコード
require 'net/ftp'
class Test
 ftp = Net::FTP.new
 ftp.connect('ftp.rakuten.ne.jp', 16910)
 ftp.close
end

エラー内容
/usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:1112:in readline': end of file reached (EOFError) from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:291:in getline'
from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:302:in getmultiline' from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:320:in getresp'
from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:341:in voidresp' from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:250:in block in connect'
from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' from /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/net/ftp.rb:248:in connect'
from test.rb:6:in <class:Test>' from test.rb:3:in '

原因についてご教授いただけませんでしょうか
よろしくお願いいたします。

0
2
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?