help-bash
[Top][All Lists]
Advanced

[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: Peng Yu
Subject: Re: [Help-bash] How to figure out what files has been loaded by bash?
Date: Sat, 7 Feb 2015 19:00:15 -0600

On Sat, Feb 7, 2015 at 6:32 PM, Bob Proulx <address@hidden> wrote:
> 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.

I have set /etc/issue.net which is where the banner is stored.

> So
> I am not sure if that is an important clue or not.  Then you say it
> hangs.  Could it be waiting for input?

This is after I put the password. I don't think it is 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

What if I don't have other way to access the server?

> Then try to log in using port 2222 and look for clues.
>
>   $ ssh -p 2222 address@hidden
>
> Bob



-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]