赞
踩
MobaXterm下载:MobaXterm
MobaXterm安装流程:
MobaXterm SFTP功能:
Port xxxxx # 修改ssh端口
PasswordAuthentication yes # 默认支持口令登录
/usr/sbin/sshd reload
useradd xtrader
passwd xtrader # 输入两次密码
/etc/sudoers
。xtrader ALL=(ALL) NOPASSWD:ALL
su - root
ssh-keygen -t rsa -C "your_email@example.com"
ssh-copy-id [-i [identity_file]] [-p port] [user@]hostname
ssh-copy-id -i .ssh/id_rsa.pub xtrader@Server
ssh-copy-id -p 30022 xtrader@Server
chmod -R 700 ~/.ssh/
chmod 600 ~/.ssh/authorized_keys
xtrader@DESKTOP-NG174BR MINGW64 ~ $ ssh-copy-id -p xxxxx xtrader@47.108.252.223 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/c/Users/xtrader/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys xtrader@47.108.252.223's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh -p 'xxxx' 'xtrader@47.108.252.223'" and check to make sure that only the key(s) you wanted were added. xtrader@DESKTOP-NG174BR MINGW64 ~ $ ssh -p 'xxxx' 'xtrader@47.108.252.223' Last login: Mon Oct 3 11:20:38 2022 from 171.221.139.134 Welcome to Alibaba Cloud Elastic Compute Service ! (base) [xtrader@XServer ~]$
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。