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
dbclient(1)						      General Commands Manual						       dbclient(1)

NAME
dbclient - lightweight SSH2 client SYNOPSIS
dbclient [-Tt] [-p port] [-i id] [-L l:h:r] [-R l:h:r] [-l user] host [command] dbclient [ args ] [user1]@host1[/port1],[user2]@host2[/port2],... DESCRIPTION
dbclient is a SSH 2 client designed to be small enough to be used in small memory environments, while still being functional and secure enough for general use. If compiled with zlib support and if the server supports it, dbclient will always use compression. OPTIONS
-p port Remote port. Connect to port port on the remote host. Default is 22. -i idfile Identity file. Read the identity from file idfile (multiple allowed). -L [listenaddress]:listenport:host:port Local port forwarding. Forward the port listenport on the local host through the SSH connection to port port on the host host. -R [listenaddress]:listenport:host:port Remote port forwarding. Forward the port listenport on the remote host through the SSH connection to port port on the host host. -l user Username. Login as user on the remote host. -t Allocate a pty. -T Don't allocate a pty. -N Don't request a remote shell or run any commands. Any command arguments are ignored. -f Fork into the background after authentication. A command argument (or -N) is required. This is useful when using password authenti- cation. -g Allow non-local hosts to connect to forwarded ports. Applies to -L and -R forwarded ports, though remote connections to -R forwarded ports may be limited by the ssh server. -y Always accept hostkeys if they are unknown. If a hostkey mismatch occurs the connection will abort as normal. -A Forward agent connections to the remote host. dbclient will use any OpenSSH-style agent program if available ($SSH_AUTH_SOCK will be set) for public key authentication. Forwarding is only enabled if -A is specified. -W windowsize Specify the per-channel receive window buffer size. Increasing this may improve network performance at the expense of memory use. Use -h to see the default buffer size. -K timeout_seconds Ensure that traffic is transmitted at a certain interval in seconds. This is useful for working around firewalls or routers that drop connections after a certain period of inactivity. The trade-off is that a session may be closed if there is a temporary lapse of network connectivity. A setting if 0 disables keepalives. -I idle_timeout Disconnect the session if no traffic is transmitted or received for idle_timeout seconds. -J proxy_command Use the standard input/output of the program proxy_command rather than using a normal TCP connection. A hostname should be still be provided, as this is used for comparing saved hostkeys. -B endhost:endport "Netcat-alike" mode, where Dropbear will connect to the given host, then create a forwarded connection to endhost. This will then be presented as dbclient's standard input/output. Dropbear will also allow multiple "hops" to be specified, separated by commas. In this case a connection will be made to the first host, then a TCP forwarded connection will be made through that to the second host, and so on. Hosts other than the final destina- tion will not see anything other than the encrypted SSH stream. A port for a host can be specified with a slash (eg matt@martello/44 ). This syntax can also be used with scp or rsync (specifying dbclient as the ssh/rsh command). A file can be "bounced" through multiple SSH hops, eg scp -S dbclient matt@martello,root@wrt,canyons:/tmp/dump . Note that hostnames are resolved by the prior hop (so "canyons" would be resolved by the host "wrt") in the example above, the same way as other -L TCP forwarded hosts are. Host keys are checked locally based on the given hostname. ENVIRONMENT
DROPBEAR_PASSWORD A password to use for remote authentication can be specified in the environment variable DROPBEAR_PASSWORD. Care should be taken that the password is not exposed to other users on a multi-user system, or stored in accessible files. SSH_ASKPASS dbclient can use an external program to request a password from a user. SSH_ASKPASS should be set to the path of a program that will return a password on standard output. This program will only be used if either DISPLAY is set and standard input is not a TTY, or the environment variable SSH_ASKPASS_ALWAYS is set. AUTHOR
Matt Johnston (matt@ucc.asn.au). Mihnea Stoenescu wrote initial Dropbear client support Gerrit Pape (pape@smarden.org) wrote this manual page. SEE ALSO
dropbear(8), dropbearkey(8) http://matt.ucc.asn.au/dropbear/dropbear.html dbclient(1)
All times are GMT -4. The time now is 07:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy