8

Is each a different side of the connection or a deeper layer of logging. I am interested because of, for example, this excerpt from a vvv output

debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection reset by nnnn port 22

Looking through the output I can't determine which side is saying what.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
Stephen Boston
  • 2,178
  • 4
  • 32
  • 55
  • Thanks for the acceptance! Favour returned: question upvoted! ;-) (I don't know why it attracted a downvote in the first place...) – Fabby Dec 04 '18 at 12:46

2 Answers2

6

The short answer:

Yes!

The long answer:

From [man ssh][1]:

-v

    Verbose mode.  Causes ssh to print debugging messages about its progress.  This is helpful in debugging connection, authentication, and configuration problems.  Multiple -v options increase the verbosity.  The maximum is 3.
Fabby
  • 5,384
  • So you're saying that -v, -vv, -vvv, are equivalent to LogLevel DEBUG1, LogLevel DEBUG2, LogLevel DEBUG3 in the ~/.ssh/config file. Then, what ssh argument should I use that will be equivalent to LogLevel VERBOSE? – cowlinator May 07 '20 at 01:29
  • Also, as a note, the debug3 output can be a little cryptic. You may want to look up RFC 4252 section 6 for help with the packet numbers. – cowlinator May 07 '20 at 01:50
  • @cowlinator Added to answer: Feel free to do this yourself next time! You can edit any answer here! (Due to your rep here, you will go through the review process) As to your LogLevel VERBOSE question: maybe post an additional question??? 0:-) – Fabby May 08 '20 at 09:58
3

In ssh I have noticed that:

ssh -v
    will tell you what is happening mostly on your end
ssh -vv 
    will tell you low level on both ends
ssh -vvv
    will tell you almost everything from both ends.

Hence the conversation :

debug1:Some useful information from 1
debug2:Some useful information from 2
debug1:Some useful information from 1
debug3:Some useful information about what is passing between both and more..