Hi, boys and girls. I have a scritp that should be executed when the
user logs in via SSH. It's a shell script, a simple menu that execs
simple commands.

But if I try to execute it as it's shell (in /etc/passwd) or
auto-execute (in ~luser/.bashrc), the sftp connection fails saying
that "Received message too long 151605106".

Then, what I ask is: is there a way to manage a connection in a way
that I recognize when is it a sftp [EMAIL PROTECTED] or a [EMAIL PROTECTED], so 
I
execute the menu script only when ssh'ing?

Thanks in advance; I will try to do something with Subsystem option meanwhile...


--
Eduardo Costa Lisboa
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to