如何在 Ubuntu 中安装 SSH?

如何在 Ubuntu 中安装 SSH?

我正在使用 Ubuntu 12.04,并尝试使用以下命令安装 SSH:

[root@avi ~]# 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

我也尝试了这个命令:

[root@avi ~]# sudo apt-get install openssh-server

怎样才能安装成功?

答案1

我在您发布的内容中注意到了这一点:

However the following packages replace it:

  openssh-client ssh-askpass-gnome

使用已安装的 open-ssh 的命令(您已通过提供的内容证明了这一点)很简单

ssh (host IP or host URL)

相关内容