Page 1 of 1

SSH Question

Posted: Fri Jan 30, 2004 9:57 pm
by [PX] Nebuchadnezzar
Bob, how do you change the folder you are pointed to when you log on to a remote computer with SSH. I currently get logged into the "root/" folder, but want to be automatically logged into the "var/www/" folder. either that, or please help with an automatic uploading program: can I type the folder as "../var/www/" ? will that go up one folder, and then to the one I want?

Posted: Sat Jan 31, 2004 10:44 am
by [PX]Kal Bob
Ok, first I assume that this is for your machine given the info you posted. First the folder that you start in is the home folder of the username. I don't recomend changing this, it cases problems especialy for the web. Big security hold.

Solutions:

1. What i do is create a symlink to the directory. eg webstuff in most of the KalNet logins.

2. The simplist way is to change the start point of sftp/ssh. To do this login with ssh, then start sftp. then:
Click Edit
Click Settings

You are looking for Remote Favorites. It is under Profile Settings, and File Transfer. Or Profile Settings>>File Transfer>>Remote Favorites.

Let me know if this helps or if I miss understood the question.
Good Luck.

Posted: Sat Jan 31, 2004 1:31 pm
by [PX] Nebuchadnezzar
my only question is what is sftp? other than that you answered what I asked, thanks.

Posted: Sat Jan 31, 2004 2:03 pm
by Ghost [PX]
SFTP is an ftp through an ssh tunnel. In linux its how you copy file back and forth, since an SSH connection just gives you remote access.

Posted: Sat Jan 31, 2004 4:49 pm
by [PX]Kal Bob
it is the part of ssh that sends files

Posted: Sat Jan 31, 2004 5:02 pm
by [PX] Nebuchadnezzar
thanks, that did the trick