OnWorks Linux và Windows Online WorkStations

Logo

Lưu trữ trực tuyến miễn phí cho máy trạm

<Trước | Nội dung | Tiếp theo>

D.4.7. Truy cập từ xa: Cài đặt SSH và thiết lập quyền truy cập

In case you can login to the system via console, you can skip this section. If the system should be accessible via the network later on, you need to install SSH and set up access.


# apt install openssh-server


Root login with password is disabled by default, so setting up access can be done by setting a password and re-enable root login with password:


#passwd

# editor /etc/ssh/sshd_config


This is the option to be enabled:


PermitRootLogin có


Access can also be set up by adding an ssh key to the root account:


# mkdir /root/.ssh

# cat << EOF > /root/.ssh/authorized_keys ssh-rsa ....

EOF


Lastly, access can be set up by adding a non-root user and setting a password:


# adduser joe

# passwd joe


D.4.8. Kết thúc chạm

Điện toán đám mây hệ điều hành hàng đầu tại OnWorks: