- 1. 概要
- 2. ifconfig
- 3. SSH サーバ
- 4. FTP サーバ
- 5. RCS
1. 概要
基本は、「Ubuntu」ですから、SSH・FTP サーバ等は、「apt install」でインストールも起動も自動で行われるとにらみます。
以下のコマンドは、すべて root ユーザからの起動です。
2. ifconfig
IP アドレスを確認しようとして・・・そうです。ifconfig のインストールからです。
apt install net-tools
3. SSH サーバ
apt install openssh-server
インストールと同時にサービスも起動します。
4. FTP サーバ
apt install vsftpd
これも、自動起動しますが、設定をちょっといじります。
/etc/vsftpd.conf
わたしは、IPv4、書き込み可にしますので
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES
を
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=NO
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
へ変更します。
修正したら
service vsftpd restart
5. RCS
apt install rcs
|