I have a vncsession running on server. Now, whenever I open a new terminal, I have to ssh to another server.
Till now I have been able to setup ssh such that it doesn’t ask for password for this particular server. But I have not been able to automatically do this in new terminal. If I add the ssh command to .tcshrc it goes into recursive loop – ssh into server, execute .tcshrc, ssh to server, so on.
I’m using Linux, cshell, Gnome setup.
You should do a hostname check or other check that allow you to recognize the difference between the client and the target. I don’t know cshell scripting but in SH you would want to do something like:
This would enforce that only the svnserver would ssh to the remote system and the remote system won’t ssh to itself.