简体   繁体   中英

Can't setup ssh on local

I've tried setting up a ssh key. Following instructions on bitbucket and ubuntu.com, specifically.

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.

$ 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.

Is there something I am missing here? I'm running Ubuntu 14.04, on a Macbook.

Thanks.

I think that:

ssh -v is:

-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.

and ssh -V:

-V Display the version number and exit.

Small v means verbose; big V is version

ssh -V

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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