how to see the console messages from sshd terminal ??

General support questions
Post Reply
squidcentos
Posts: 78
Joined: 2013/01/19 13:04:07
Contact:

how to see the console messages from sshd terminal ??

Post by squidcentos » 2013/02/28 18:09:48

hi ,
sometimes an important console messages is logged on the server .
but these messages only shown on console .

some messages may be important and need to be seen on ssh terminal .

how to see theses messages on the ssh terminal ,

its not important to be on ssh only , i mean if there an access file where theses console messages is logged , it would be another pretty solution .

regards

philr5150
Posts: 13
Joined: 2013/02/28 17:40:02
Contact:

Re: how to see the console messages from sshd terminal ??

Post by philr5150 » 2013/02/28 18:18:02

tail /var/log/messages

If you want it "live":

tail -f /var/log/messages


or try dmesg for bootup and other event messages.

squidcentos
Posts: 78
Joined: 2013/01/19 13:04:07
Contact:

Re: how to see the console messages from sshd terminal ??

Post by squidcentos » 2013/02/28 19:19:04

[quote]
philr5150 wrote:
tail /var/log/messages

If you want it "live":

tail -f /var/log/messages


or try dmesg for bootup and other event messages.[/quote]

hi ,
thanks very much

ive tested it , but it dont show all the logs .
i mean that there are another logs not shown in the file log above !



regards

philr5150
Posts: 13
Joined: 2013/02/28 17:40:02
Contact:

Re: how to see the console messages from sshd terminal ??

Post by philr5150 » 2013/02/28 20:26:53

Well if you're looking for something specific, go to /var/log and see what files are in there. For example, httpd logs are (usually) in /var/logs/httpd. So you'd have to see what you have.

If you want something specific - like SMART disc issues or something - you'd need to say so we know where to guide you. You're asking for a specific answer to a generic question, not easy to give that :-)

Post Reply