gpt4 book ai didi

linux - 无法在本地设置ssh

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:57:01 25 4
gpt4 key购买 nike

我试过设置 ssh key 。具体遵循 bitbucket 和 ubuntu.com 上的说明。

sudo apt-get install openssh-client
sudo apt-get install openssh-server
ssh-keygen -t rsa

但是,当我尝试检查它是否安装正常时,可以进入。

ssh -v

我收到回复。

ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port]
[-Q cipher | cipher-auth | mac | kex | key]
[-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] [user@]hostname [command]

但根据 Bitbucket,第一行应该是版本详细信息。

$ ssh -v 
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile] etc etc...

它还指出

If you have ssh installed, the terminal returns version information.

我在这里遗漏了什么吗?我在 Macbook 上运行 Ubuntu 14.04。

谢谢。

最佳答案

我认为:

ssh -v 是:

-v Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentica- tion, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3.

和 ssh -V:

-V Display the version number and exit.

关于linux - 无法在本地设置ssh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34136522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com