远程服务器配置的可能问题及解决办法

远程服务器里面个人容器的配置三个问题的具体解决方法

1、登录个人容器,出现SSH拒绝形如下图:

出现错误的状况
解决办法:
vim /etc/ssh/sshd_config
以下内容有则修改,无则加上

  • PasswordAuthentication yes
  • PermitRootLogin yes
  • PubkeyAuthentication no
  • UseLogin yes
    重启sshd服务(service sshd restart)===>问题即可解决。
2、连接不上校园网

目录从百度网盘获取,文末有链接

3、个人容器建立conda虚拟环境失败
3.1、具体形如下图:

未连接校园网
解决办法:很可能是没有连接校园网,连接校园网即可。

3.2、具体形如下图

源缺失

vim ~/.condarc
将所有的内容替换成如下内容:

channels:
  - defaults
show_channel_urls: true
channel_alias: http://mirrors.bfsu.edu.cn/anaconda
default_channels:
  - http://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
  - http://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
  - http://mirrors.bfsu.edu.cn/anaconda/pkgs/r/
  - http://mirrors.bfsu.edu.cn/anaconda/pkgs/pro/
  - http://mirrors.bfsu.edu.cn/anaconda/pkgs/msys2/
custom_channels:
  conda-forge: http://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
  msys2: http://mirrors.bfsu.edu.cn/anaconda/cloud/msys2/
  bioconda: http:///mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
  menpo: http://mirrors.bfsu.edu.cn/anaconda/cloud/menpo/
  pytorch: http://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
  simpleitk: http://mirrors.bfsu.edu.cn/anaconda/cloud/simpleitk/
auto_activate_base: false

注意:对于.condarc配置文件,是一种可选的(optional)运行期配置文件,其默认情况下是不存在的,但当用户第一次运行 conda config命令时,将会在用户的家目录创建该文件。

链接:https://pan.baidu.com/s/1urVC-eptyq_Wh5vdxzfI4A
提取码:Hf66

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值