Preparing to build a home server: SSH server remote connection (Tera Term)

How to use Tera Term.

Click the client PC (Windows) icon to start Tera Term.

Tera Term

Enter the server IP address and click “OK”.

サーバーIPアドレス

Enter your user name and password and click “OK”.

ユーザー名、パスワードを入力

A security warning will appear only for the first time, so click “Continue”.

セキュリティ警告

root login.

Enter su – (root login command) and click, then enter your root password.
If the line ends with “$”, you are logged in as a local user.
If the line ends with “#”, you are logged in as root (administrator).

[webmaster@www ~]$ su -
password:

vi editor.

start up.

[root@www ~]# vi File name

Press the “i” key to switch to edit mode.

To erase the characters, press “Back Space” to erase from the back.

Press “Esc” to switch to command mode.。

Quit without saving.

:q

Save and exit.

:wq

Move directory.

Move.

[root@www ~]# cd Directory path

Unmove.

[root@www ~]# cd

Restart.

file operations.

Copy.

[root@www ~]# cp -b Original file Destination file

Move. It can also be used for renaming.

[root@www ~]# mv Original file Destination file

Delete.

[root@www ~]# rm File name

directory operations.

create.

[root@www ~]# mkdir Directory name

Delete.

[root@www ~]# rm -r Directory name

change permissions.

Access rights (0 + Owner + Group +Others)

Owner Group Others
Create/Delete 7 7 7
Reading and Writing 6 6 6
Execution 5 5 5
Read only 4 4 4
All prohibited
0 0

change.

[root@www ~]# chmod Access permission File name

system operation.

start up.

[root@www ~]# systemctl start Service name

Restart.

[root@www ~]# systemctl restart Service name

stop.

[root@www ~]# systemctl stop Service name

Reset.

[root@www ~]# systemctl reload Service name

Set auto start.

[root@www ~]# systemctl enable サービス名

Disable auto-start.

[root@www ~]# systemctl disable サービス名

server operations.

Restart.

[root@www ~]# reboot

stop.

[root@www ~]# hait

コメント

タイトルとURLをコピーしました