Sponsored Content
Full Discussion: General Unix Error Logging?
Top Forums UNIX for Dummies Questions & Answers General Unix Error Logging? Post 302350201 by Dave Stockdale on Thursday 3rd of September 2009 04:57:21 AM
Old 09-03-2009
General Unix Error Logging?

Yesterday evening my server appeared to fall over. I couldn't copy (scp) files to it, and I couldn't SSH to it either. Every time I tried, it just gave me this message:

Read from remote host <IP ADDRESS>: Connection reset by peer
Connection to <IP ADDRESS> closed.


I got in this morning, and unfortunately it hadn't fixed itself. I went down to the server room to try and use the console down there, but that wasn't responding, so I rebooted it.

This fixed the problem, and everything came back up, but I would like to know what happened to it. I've had a look in /var/log/secure and it isn't massively helpful - it shows the last activity before falling over as being on 30th August (which is correct) and then nothing until 9:10 this morning:

Sep 3 09:10:24 www sshd[2849]: Server listening on :: port 22.
Sep 3 09:10:24 www sshd[2849]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.


Which I guess is when I booted it. It hasn't recorded any failed attempts to connect to it.

Are there any logs that might show me what happened in between this period so that I can figure out what went wrong? I was thinking maybe some process logs or something?

Sorry for the lengthy post, wanted to give as much detail as possible. Thanks guys!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

users logging on to unix boxes

I have been asked to write a unix script to log and report all users logging on to our unix boxes as either the root or oracle users only on a 24 hour basis. This should trap the logon and logoff time,if possible what they are doing and their username. Thanks in Advance (2 Replies)
Discussion started by: irehman
2 Replies

2. UNIX for Advanced & Expert Users

General Unix Questions !!

1. How do we know what is my machine name and what is its IP address? (in Solaris) 2. If i want to know the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris) then what command i have to look. (5 Replies)
Discussion started by: dreams5617
5 Replies

3. UNIX for Advanced & Expert Users

unix logging

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

4. UNIX for Dummies Questions & Answers

on unix, ftp to windows...logging in

I am ftp'ing to one of our network drives to pick up a tar file. In the script, it does the ftp, but doesn't pick up the username and password. Do I need to script these a certain way so it knows this is input? ftp machinename.com userid passwd (5 Replies)
Discussion started by: brdholman
5 Replies

5. Shell Programming and Scripting

General UNIX Query

Hi all, I am having putty in my system.But I dont have access to any UNIX Servers.Is there any default or common UNIX Server so that anyone can access and be familiar with UNIX and Shell scripting. I want to work and practice in UNIX..Thats why I am asking this question. Kindly give me... (2 Replies)
Discussion started by: dave_nithis
2 Replies

6. UNIX for Dummies Questions & Answers

Few general unix qns..URGENT!!

hey guys, I have a few general qns on unix, so I'd appreciate quick responses. 1. How do u read a file line by line and display its contents using KSH? 2. How to kill a process using only the name? 3. How to create an empty file with 1MB memory size? 4. How to append some content to an... (2 Replies)
Discussion started by: sasuke_uchiha
2 Replies

7. Shell Programming and Scripting

Logging into another UNIX box

Hello All, Is there any UNIX or KSH Command to login to an linux/unix server and execute a command and then come back to the original server where u have executed the command. For Example: ------------------------------------------------------- SServer1 - Source Server. DServer2 -... (1 Reply)
Discussion started by: maxmave
1 Replies

8. UNIX for Dummies Questions & Answers

General Terminology related to the UNIX System

Hello, I am relatively new to the world of programming in general and to the UNIX System in particular. I have a bunch of theoretical questions related to terminology which I have come across in my coursebooks. I hope I post my question at the right place. Any help would be warmly welcome! ... (1 Reply)
Discussion started by: feliks0
1 Replies

9. UNIX for Dummies Questions & Answers

Identify issues through logging in unix

I am a newbie to unix and appeared for an interview and was asked this question. If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and... (2 Replies)
Discussion started by: praveenveerla
2 Replies

10. What is on Your Mind?

UNIX.COM General Data Privacy Regulations (GDPR) Compliance - For Member Comments

Dear All, Please read version Version 0.81 28 May 2018 of our draft UNIX.COM General Data Privacy Regulations (GDPR) Compliance. If you have any data privacy questions or concerns, or would like to see us address any other data privacy topic related to your personal data at UNIX.COM,... (12 Replies)
Discussion started by: Neo
12 Replies
libssh2_channel_direct_tcpip_ex(3)				  libssh2 manual				libssh2_channel_direct_tcpip_ex(3)

NAME
libssh2_channel_direct_tcpip_ex - Tunnel a TCP connection through an SSH session SYNOPSIS
#include <libssh2.h> LIBSSH2_CHANNEL * libssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session, const char *host, int port, const char *shost, int sport); LIBSSH2_CHANNEL * libssh2_channel_direct_tcpip(LIBSSH2_SESSION *session, const char *host, int port); DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3) host - Third party host to connect to using the SSH host as a proxy. port - Port on third party host to connect to. shost - Host to tell the SSH server the connection originated on. sport - Port to tell the SSH server the connection originated from. Tunnel a TCP/IP connection through the SSH transport via the remote host to a third party. Communication from the client to the SSH server remains encrypted, communication from the server to the 3rd party host travels in cleartext. RETURN VALUE
Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. SEE ALSO
libssh2_session_init_ex(3) libssh2 0.15 1 Jun 2007 libssh2_channel_direct_tcpip_ex(3)
All times are GMT -4. The time now is 06:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy