0
0

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 1 year has passed since last update.

FTPとFTPD

0
Last updated at Posted at 2025-05-13

VSFTP

順番に

apt install vsftpd
apt-get update
vim /etc/vsftpd.chroot_list

で「vsftpd1」のような接続先を作成する

verifyと修正

/var/sbin/vsftpd /etc/vsftpd.conf

で修正箇所があれば見つけることもあり
殆どが設定の変更間違いであったり#を消してしまったり、
はたまた、ipv4や6で細かな変更が必要であったり。
/etcへvsftpd.chroot_listを作成してもユーザーを追加せずに
adduserもいない状態であるので/home内とかを確認する。

移動後に vsftpd startよりも案外と直接起動

/etc/init.d/vsftpd start

稼働状況を確認するには systemctl -t service でもわかる他に

systemctl status vsftpd

もしくは

systemctl status vsftpd.service

で確認可能。

LFTP

順番に

apt-get -y install lftp
apt-get update
vim /etc/lftp.confの最後の行に下の1行を付け足す
set ssl:verify-certificate no

接続設定

lftp -u ユーザー http: https: ftp: ~~~ のようなアドレス

接続解除
exitでlftp終了 quit か close で解除

よく使用するコマンド

  • 接続先
    ls, cd, pwd,rm, mrm, rmdir, mkdir, cat

  • ローカル
    !ls, lcd, !pwd

  • ダウンロード

get -a lftp.txt
mget -a lftp.html lftp2.html lftp3.html
mirror
  • アップロード
put -a local.txt
mput -a local.txt local2.txt local3.txt
mirror -R

参照・引用元

Server World 他検索

0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?