本帖最后由 zxxx 于 2023-3-3 09:24 编辑
Linux 救援系统
通过 VNC 连接服务器 使用 root 登录,密码是启动救援系统的临时密码

查看系统信息
- cat /etc/*release*
- CentOS Stream release 8
- NAME="CentOS Stream"
- VERSION="8"
- ID="centos"
- ID_LIKE="rhel fedora"
- VERSION_ID="8"
- PLATFORM_ID="platform:el8"
- PRETTY_NAME="CentOS Stream 8"
- ANSI_COLOR="0;31"
- CPE_NAME="cpe:/o:centos:centos:8"
- HOME_URL="https://centos.org/"
- BUG_REPORT_URL="https://bugzilla.redhat.com/"
- REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
- REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
- CentOS Stream release 8
- CentOS Stream release 8
- cpe:/o:centos:centos:8
复制代码
救援系统为 CentOS Stream release 8
因为只提供一个端口映射到3389,修改 /etc/ssh/sshd_config
- sed -i 's/.*Port.*/Port 3389/' /etc/ssh/sshd_config
复制代码
重新启动 sshd 服务
然后可以使用SSH客户端连接到服务器
- uname -a
- Linux rescue 4.18.0-358.el8.x86_64 #1 SMP Mon Jan 10 13:11:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- lscpu
- Architecture: x86_64
- CPU op-mode(s): 32-bit, 64-bit
- Byte Order: Little Endian
- CPU(s): 2
- On-line CPU(s) list: 0,1
- Thread(s) per core: 1
- Core(s) per socket: 2
- Socket(s): 1
- NUMA node(s): 1
- Vendor ID: GenuineIntel
- BIOS Vendor ID: Red Hat
- CPU family: 6
- Model: 62
- Model name: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
- BIOS Model name: RHEL 7.6.0 PC (i440FX + PIIX, 1996)
- Stepping: 4
- CPU MHz: 2999.998
- BogoMIPS: 5999.99
- Hypervisor vendor: Microsoft
- Virtualization type: full
- L1d cache: 32K
- L1i cache: 32K
- L2 cache: 256K
- L3 cache: 25600K
- NUMA node0 CPU(s): 0,1
- fdisk -l
- Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6368bc3b
- Device Boot Start End Sectors Size Id Type
- /dev/vda1 * 2048 20971486 20969439 10G 83 Linux
- Disk /dev/vdb: 50 GiB, 53687091200 bytes, 104857600 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x43ba6da5
- Device Boot Start End Sectors Size Id Type
- /dev/vdb1 * 2048 104855551 104853504 50G 7 HPFS/NTFS/exFAT
- Disk /dev/vdc: 10 GiB, 10737418240 bytes, 20971520 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xec62d9c5
- Device Boot Start End Sectors Size Id Type
- /dev/vdc1 128 20971392 20971265 10G 7 HPFS/NTFS/exFAT
复制代码
|