> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autodl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XShell

XShell是Windows系统中非常好用的远程管理软件，功能强大方便。

## XShell安装

XShell是付费版软件，但是可以通过官方途径申请免费许可证。方式如下：

Step1. [访问网址](https://www.xshell.com/zh/free-for-home-school/) 按照要求填写邮箱地址信息，比如：

![image-20210929171453401](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/remote/xshell/image-20210929171453401.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=86428c36d089dc727e25af22cc121077)

Step2. 使用官方给邮件中发送的链接进行下载并安装使用。注意：安装过程中会询问是否购买付费版本，请选择否即可。

## XShell使用

开机实例后，找到SSH登录指令

![image-20210820130946320](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/remote/xshell/image-20210820130946320.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=6bdc66754ccbb41fc28efc8180b7699e)

> [!NOTE]
>
> 注意SSH登录指令中的端口等需要更换您的实例对应的信息

复制登录指令为(具体请以您的实例为准)：`ssh -p 44562 root@region-1.autodl.com` 。由于XShell命令格式较特殊，需要您手动修改格式为: `ssh root@region-1.autodl.com 44562` 即将端口号置于末尾，无需添加`-p`参数。例如：

![image-20210902143736972](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/remote/xshell/image-20210902143736972.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=503944a0fd91b67ade4a0b44057b5d6c)

其中在键入ssh命令后回车会弹出输入密码的弹窗：

![image-20210902143812721](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/remote/xshell/image-20210902143812721.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=ec09ea8be804e37da8fe7c3b0612b001)

## XShell传输文件

如果已经配置了SSH登录，那么可以使用XShell提供的xftp进行文件传输，方式如下：

![image-20211221152907016](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/remote/xshell/image-20211221152907016.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=870f8f457e64d1b280305990a074588c)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.