SSH Question

This Forum is for Question, Comment, Request & all things conserning Linux. All Hail Mighty Tux

Moderator: [PX]Kal Bob

Post Reply
User avatar
[PX] Nebuchadnezzar
Posts: 3438
Joined: Sun Mar 23, 2003 12:14 pm
Location: London, Ontario
Contact:

SSH Question

Post 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?
Image
Get into the game! It's just like being there.
Like, Subscribe, Friend, & Follow us into the future!!
[PX]Kal Bob
Site Admin
Posts: 1959
Joined: Sun Mar 23, 2003 1:41 am
Location: Stalinist Russia!
Contact:

Post 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.
KalNet SysAdmin.
Elitism- It's Lonely At The Top. But It's Comforting To Look Down Upon Everyone At The Bottom.
User avatar
[PX] Nebuchadnezzar
Posts: 3438
Joined: Sun Mar 23, 2003 12:14 pm
Location: London, Ontario
Contact:

Post by [PX] Nebuchadnezzar »

my only question is what is sftp? other than that you answered what I asked, thanks.
Image
Get into the game! It's just like being there.
Like, Subscribe, Friend, & Follow us into the future!!
User avatar
Ghost [PX]
Posts: 3392
Joined: Sun Mar 23, 2003 2:36 am
Location: The smallest room in existence
Contact:

Post 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.
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
[PX]Kal Bob
Site Admin
Posts: 1959
Joined: Sun Mar 23, 2003 1:41 am
Location: Stalinist Russia!
Contact:

Post by [PX]Kal Bob »

it is the part of ssh that sends files
KalNet SysAdmin.
Elitism- It's Lonely At The Top. But It's Comforting To Look Down Upon Everyone At The Bottom.
User avatar
[PX] Nebuchadnezzar
Posts: 3438
Joined: Sun Mar 23, 2003 12:14 pm
Location: London, Ontario
Contact:

Post by [PX] Nebuchadnezzar »

thanks, that did the trick
Image
Get into the game! It's just like being there.
Like, Subscribe, Friend, & Follow us into the future!!
Post Reply

Return to “Linux Forum”