简体   繁体   English

无法在本地设置ssh

[英]Can't setup ssh on local

I've tried setting up a ssh key. 我尝试设置ssh密钥。 Following instructions on bitbucket and ubuntu.com, specifically. 具体按照bitbucket和ubuntu.com上的说明进行操作。

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

However, when I try to check it's installed ok entering. 但是,当我尝试检查安装是否正确时。

ssh -v

I get the response. 我得到回应。

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]

But according to Bitbucket the first line should be version details. 但是根据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...

It also states 它还指出

If you have ssh installed, the terminal returns version information. 如果已安装ssh,则终端将返回版本信息。

Is there something I am missing here? 我在这里缺少什么吗? I'm running Ubuntu 14.04, on a Macbook. 我在Macbook上运行Ubuntu 14.04。

Thanks. 谢谢。

I think that: 我觉得:

ssh -v is: ssh -v是:

-v Verbose mode. -v详细模式。 Causes ssh to print debugging messages about its progress. 使ssh打印有关其进度的调试消息。 This is helpful in debugging connection, authentica- tion, and configuration problems. 这有助于调试连接,身份验证和配置问题。 Multiple -v options increase the verbosity. 多个-v选项增加了详细程度。 The maximum is 3. 最大值为3。

and ssh -V: 和ssh -V:

-V Display the version number and exit. -V显示版本号并退出。

Small v means verbose; 小v表示冗长; big V is version 大V是版本

ssh -V

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM