I have a server where the default shell is tcsh. It has been setup in its .cshrc to load a number of modules on login. So it is quite slow to login and I just have to live with it.
My problem is that these modules are loaded even for an scp connection. Hence becomes frustrating if I have to wait almost a minute for every scp transfer.
I was wondering if there was a way to either disable calling .cshrc during scp transfers or make scp use a different login shell?