[Solved] ssh works but scp does not

Structure of an SSH binary packet
Image via Wikipedia

For quite sometime now, I was having this issue, that for the home system, I was able to connect to is using ssh but it never worked. Fnally after quite some debugging finally I found that the issue was with thebashrc. So, everytime I had to do a scp I would have to move/rename bashrc and do the reverse action after the scp was done.

Finally today I fixed it and the solution was very simple. I put the offending code or rather complete bashrc in the loop as mentioned below:


if [[ $SSH_CLIENT = "" ]


<bashrc code here>


By doing this the <dot>bashrc is never executed when a ssh session is initiated (which is what happens for scp also). 🙂

Enhanced by Zemanta

Screenshot of Gnome3 with awn

Here is another screenshot of my laptop desktop with Gnome 3 and AWN (Avant window Navigator) running. Looks beautiful, isn’t it?

By the way, with this setup I have the old style menu also just that instead of on the top it is on the bottom just like old RH9 🙂

Enhanced by Zemanta

Gnome 3 screenshot with conky dock

Just to give you a idea of how beautiful it looks, here’s a screenshot 🙂

Enhanced by Zemanta