LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-24-2020, 01:37 AM   #16
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled

ssh too small and simple, no need to debug or investigate deep, all info, errors in real-time located on status message -> login attempts, port, ip, status, wrong login, wrong passwd etc. just try to login and look to systemctl status sshd.service, you will see whats wrong, thats all
 
Old 07-24-2020, 04:43 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,763

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
marliyev, I do not want to discourage participation but while ssh appears simple it is not. We are trying to help you as well as the OP and being argumentative with members that have more knowledge and experience is counterproductive.

Looking at authentication messages is a start but there are subtle errors that occur where additional debug information is required. Some errors like file permissions are just ignored. To say that all information is provided by login messages may be misleading for others who search here with similar problems.
 
Old 07-24-2020, 04:58 AM   #18
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
marliyev, I do not want to discourage participation but while ssh appears simple it is not. We are trying to help you as well as the OP and being argumentative with members that have more knowledge and experience is counterproductive.

Looking at authentication messages is a start but there are subtle errors that occur where additional debug information is required. Some errors like file permissions are just ignored. To say that all information is provided by login messages may be misleading for others who search here with similar problems.
disagree about knowledge and experience, if you have moderator or LQ Guru label its not proof that you better than me its not right way to give advice for simple question long comment, everybody can paste label moderator or Guru and begin searching google for answer i know very well how you all answering questions))) if you are guru in linux, i have open thread go and answer for it, moderator)))
 
Old 07-24-2020, 05:37 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
In my case systemctl & journalctl give the exact same output for sshd.
Decreasing the priority of shown messages in journalctl has no effect. It's possible that would be different if I had actual errors happening, like OP.
In any case, journalctl seems to give more granular control.

@OP:
Code:
journalctl -n999 --no-pager -p7 | grep sshd
 
Old 07-24-2020, 05:47 AM   #20
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
You can refine that even more, if you have a system infected with systemd:

Code:
sudo journalctl --priority 7 --unit ssh

sudo journalctl --priority 7 --unit ssh --grep 'somepcre'
However, depending on how busy the SSH sever is there, the log may be too much noisy to conveniently find the problem. The method in #8 above works well in a production environment and creates an isolated but complete set of logs for easy analysis.
 
Old 07-24-2020, 07:55 AM   #21
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by marliyev View Post
ssh too small and simple, no need to debug or investigate deep, all info, errors in real-time located on status message -> login attempts, port, ip, status, wrong login, wrong passwd etc. just try to login and look to systemctl status sshd.service, you will see whats wrong, thats all
Still wrong; either you didn't understand what was said or you won't listen. Again, showing the status of the service won't tell you much at all.
Quote:
Originally Posted by marliyev
disagree about knowledge and experience, if you have moderator or LQ Guru label its not proof that you better than me  its not right way to give advice for simple question long comment, everybody can paste label moderator or Guru and begin searching google for answer  i know very well how you all answering questions))) if you are guru in linux, i have open thread go and answer for it, moderator)))
It is obvious you disagree about knowledge and experience, because it appears you have neither, and have no interest in learning. If you think all people do is Google, then its surprising that YOU haven't been able to figure out the problem and don't know better than to just suggest a status command.

And throwing out sarcastic insults then telling people to go answer your question is pretty funny. Why do you think ANYONE would want to help you at this point?

Quote:
Originally Posted by Turbocapitalist
You can refine that even more, if you have a system infected with systemd:
Code:
sudo journalctl --priority 7 --unit ssh
sudo journalctl --priority 7 --unit ssh --grep 'somepcre'
However, depending on how busy the SSH sever is there, the log may be too much noisy to conveniently find the problem. The method in #8 above works well in a production environment and creates an isolated but complete set of logs for easy analysis.
Agreed, but the OP is using Putty, ostensibly on a Windows system. The normal things for a SSH client to see verbosity may not work; not familiar enough with Putty to know that for certain, mind you. You can log connection attempts to a file and review it later, but the "-vvv" on the CLI is much easier (to me).
 
1 members found this post helpful.
Old 07-24-2020, 08:27 AM   #22
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Still wrong; either you didn't understand what was said or you won't listen. Again, showing the status of the service won't tell you much at all.

It is obvious you disagree about knowledge and experience, because it appears you have neither, and have no interest in learning. If you think all people do is Google, then its surprising that YOU haven't been able to figure out the problem and don't know better than to just suggest a status command.

And throwing out sarcastic insults then telling people to go answer your question is pretty funny. Why do you think ANYONE would want to help you at this point?


Agreed, but the OP is using Putty, ostensibly on a Windows system. The normal things for a SSH client to see verbosity may not work; not familiar enough with Putty to know that for certain, mind you. You can log connection attempts to a file and review it later, but the "-vvv" on the CLI is much easier (to me).
LQ Guru, how you doing? are you seeking for job in internet cafe?
 
Old 07-24-2020, 08:30 AM   #23
marliyev
Member
 
Registered: Apr 2020
Location: Jamaica
Posts: 68

Rep: Reputation: Disabled
attention for root and moderators!!! if someone steps on my foot, I will not be silent, give advice to your fake Guru users!!!
 
Old 07-24-2020, 01:55 PM   #24
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,737

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Quote:
Originally Posted by marliyev View Post
LQ Guru, how you doing? are you seeking for job in internet cafe?
Reported. Please review the LQ Rules...specifically.
Quote:
Do not post any messages that are obscene, vulgar, sexually-orientated, hateful, threatening, hostile or insulting.
Personal attacks on others will not be tolerated.
Flame Wars will not be tolerated.
Do not post if you do not have anything constructive to say in the post.
 
1 members found this post helpful.
Old 07-24-2020, 05:29 PM   #25
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,737

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Back to the topic...
Had to jump over to a Windows box to review how PuTTY worked.

On the connection dialog there is a Logging tab where logging can be turned on:
Click image for larger version

Name:	PuttyLog.JPG
Views:	64
Size:	55.0 KB
ID:	33709
Capturing everything should yield some clues.

Last edited by scasey; 07-24-2020 at 05:31 PM.
 
1 members found this post helpful.
Old 07-24-2020, 05:53 PM   #26
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,604

Rep: Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103
marliyev, your posting privileges have been suspended for 24 hours. If you'd like to continue participating at LQ moving forward, please do ensure you follow the rules. If you have any questions, do feel free to contact me directly.

--jeremy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH using putty throws "server unexpectedly closed connection" madhavanss Linux - Networking 4 03-16-2012 04:52 AM
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
ssh problem "server unexpectedly closed network connection" sunilvadranapu SUSE / openSUSE 7 02-10-2010 02:43 AM
Different SSH "Server unexpectedly closed network connection" (using Putty) mjwraw Linux - Networking 4 07-22-2009 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration