SSH Question
Moderator: [PX]Kal Bob
- [PX] Nebuchadnezzar
- Posts: 3438
- Joined: Sun Mar 23, 2003 12:14 pm
- Location: London, Ontario
- Contact:
SSH Question
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?
-
[PX]Kal Bob
- Site Admin
- Posts: 1959
- Joined: Sun Mar 23, 2003 1:41 am
- Location: Stalinist Russia!
- Contact:
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.
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.
KalNet SysAdmin.
Elitism- It's Lonely At The Top. But It's Comforting To Look Down Upon Everyone At The Bottom.
Elitism- It's Lonely At The Top. But It's Comforting To Look Down Upon Everyone At The Bottom.
- [PX] Nebuchadnezzar
- Posts: 3438
- Joined: Sun Mar 23, 2003 12:14 pm
- Location: London, Ontario
- Contact:
- Ghost [PX]
- Posts: 3392
- Joined: Sun Mar 23, 2003 2:36 am
- Location: The smallest room in existence
- Contact:
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.
Nature is bountiful where idiots are concerned
No, they arent breasts, they're personalities, because its ok to like a girl for her personalities
It takes a big man to cry, but it takes a bigger man to laugh at that man
No, they arent breasts, they're personalities, because its ok to like a girl for her personalities
It takes a big man to cry, but it takes a bigger man to laugh at that man
-
[PX]Kal Bob
- Site Admin
- Posts: 1959
- Joined: Sun Mar 23, 2003 1:41 am
- Location: Stalinist Russia!
- Contact:
- [PX] Nebuchadnezzar
- Posts: 3438
- Joined: Sun Mar 23, 2003 12:14 pm
- Location: London, Ontario
- Contact: