我在Ubuntu linux中意外删除openssh客户端后无法连接到aws中的堡垒主机,即使使用浏览器的connect mindterm也不会让我点击openssh-client按钮,有没有人知道如何解决这个问题?
注意:入站安全组已经设置了端口22,这一切都在我实现public class DogTest {
public static void main(String[] args) {
Dog dog = new Dog("Spike");
System.out.println(dog.getName() + " says " + dog.speak());
Labrador boop = new Labrador("name", "color");
Yorkshire beep = new Yorkshire("name");
}
}
class Dog {
protected String name;
public Dog(String name) {
this.name = name;
}
public String getName() {
return name;
}
public String speak() {
return "Woof";
}
}
class Labrador extends Dog {
private String color;
private static int breedWeight = 75;
public Labrador(String name, String color) {
super(name);
this.color = color;
}
public String speak() {
return "WOOF";
}
public static int avgBreedWeight() {
return breedWeight;
}
}
class Yorkshire extends Dog {
public Yorkshire(String name) {
super(name);
}
public String speak() {
return "woof";
}
}
之后发生,然后它拒绝连接以进行任何修复。
答案 0 :(得分:0)
在EC2控制台中,在'操作'选择'查看/更改用户数据'在实例上给出以下命令和电源
#!/斌/庆典
apt-get install -y openssh *