在Ubuntu上安装SSH。输入命令:
$ sudo apt-get install ssh
出现以下的错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ssh is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
openssh-client ssh-askpass-gnome
E: Package 'ssh' has no installation candidate
该怎样解决?求大神指导。。。
换名字了,错误信息提示你了
sudo apt-get install openssh-client
你的ubuntu是什么版本的,可能太旧了,你把APT源换成12.10或14.04的源试试
1、可能ssh的名字不叫这个,可以搜索可能的名字:sudo apt-get install ssh然后按下两次tab键,会显示很多和ssh相关的软件,安装比较合适的
2、sudo apt-get update更新一下源
3、执行ssh,看他会提示你安装哪个软件,就把那个软件给装上。