[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to figure out what files has been loaded by bash?
From: |
Bob Proulx |
Subject: |
Re: [Help-bash] How to figure out what files has been loaded by bash? |
Date: |
Sat, 7 Feb 2015 17:32:33 -0700 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Peng Yu wrote:
> Bob Proulx wrote:
> > A useful debug technique is:
> >
> > ssh -t localhost bash -ix
>
> I tried the above command. I only see the login banner (on ubuntu) and
> then entered the password. Then it hangs. Does it mean something is
> wrong before bash is called?
I don't see any login banner on Ubuntu before the password prompt. So
I am not sure if that is an important clue or not. Then you say it
hangs. Could it be waiting for input? Try giving it some input or a
control-d to terminate input and see what it does.
But yes I would say that something is wrong before bash is called
then.
On Debian and Ubuntu ssh activity will be logged in /var/log/auth.log
and may contain clues as to what is happening. If you have enough
access and control on the server machine I would start up a debug sshd
on a different port. Then watch the debug output as you attempt to
log into it.
# /usr/sbin/sshd -d -p 2222
Then try to log in using port 2222 and look for clues.
$ ssh -p 2222 address@hidden
Bob