Re: SSH problem!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 07, 2004 at 12:38:31AM -0300, Nelson Guedes Paulo Junior wrote:

> 
> I've installed fortune-mod (yum install fortune-mod) and add the
> following line to ~/.bashrc for my user:
> 
> echo;fortune;echo
> 
> but, whem I try to "scp" a file from an external host to my machine,
> afeter the autentication phase, fortune runs and my session is aborted
...
> Any ideias??????
> Why this happens????

The noise from fortune is confusing ssh.

You need to wrap your "echo;fortune;echo" inside a test.  Commonly
this is a test for the prompt environment variable ($PS1).

This might be enough of a hint, see if you can find examples.
For now comment it out so you can get other work done.

Big hint, Check out "info bash" and look for
"Is this Shell Interactive?"


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux