Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 配置 SSH 服务实现远程远程访问_使用 ssh 远程控制 linux_liguangxian2018 的博客 - CSDN 博客 #12

Open
customsshen opened this issue Apr 8, 2024 · 0 comments
Labels
server something about homelab

Comments

@customsshen
Copy link
Owner

  1. 查询是否安装 SSH.
rpm -pa |grep ssh

  1. 如果没有安装 rmp:
sudo apt-get install rpm          #ubuntu,debian
yum -y instal rpm                 #centos,redhat

  1. 安装 SSH
sudo apt-get install ssh
or
yum -y install openssh

  1. 启动服务:
service sshd start
or
/bin/systemctl restart sshd.service
or
/etc/init.d/sshd start

  1. 配置端口:
vim /etc/ssh/sshd_config

  1. 将 port 前面的 #删除, 也可以更改其它端口.

  1. 允许 root 用户远程登录.

  1. 查看服务是否启动:
ps -e | grep ssh

  1. 远程登录:

  1. 服务器与主机之间的文件的上传与下载:

scp 服务器主机之间文件互传:https://blog.csdn.net/liguangxianbin/article/details/79544182

@customsshen customsshen added the server something about homelab label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server something about homelab
Projects
None yet
Development

No branches or pull requests

1 participant