Closed Thread Icon

Topic awaiting preservation: Question about SSH login (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=23263" title="Pages that link to Topic awaiting preservation: Question about SSH login (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Question about SSH login <span class="small">(Page 1 of 1)</span>\

 
jahlz
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Aug 2004

posted posted 09-11-2004 04:58

Okay, I am quite a novice with this, so bear with me.

I have a script for a site in perl and it has a setup program to hopefully do all the main work. The readme says to access the server via SSH and enter a command. My host has enabled SSH for me. But how to I begin this process? I mean, how do I log onto, ot into the SSH and enter the command?

Thanks.

Lena

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 09-11-2004 05:34

1)
if you are on Windows install PUTTY for a ssh client and open a terminal, if you are on any flavor of *nix (including OS-X) just open a terminal

2)
type ' ssh yourusername@yourserver.com'
provide your password when asked for it.

This is all you need to do to connect to your remote host via ssh.

/* Sure, go ahead and code in your fancy IDE. Just remember: it's all fun and games until someone puts an $i out */

jahlz
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2004

posted posted 09-11-2004 06:13

Great, I think I got that far now, once I have the connection via puTTy, how do I get inside the directory I want? I uploaded a folder with a setup. pl, I need to get to this directory to give the command "perl setup.pl" don't I?

Thanks again for the fast reply!

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 09-11-2004 06:56

....well if you know the path to the directory, just type:

'cd myfolder/subfolder'

If you don't know the path, here is a little trick to find out exactly where on the webserver your files live:

open a command prompt and connect to your server via FTP

'ftp yourserver.com'

then supply your username and password when prompted.
Once you are connected issue this command:

' pwd '

like magic the server will supply the path to the directory that you ftp into for uploading.

Another way would be to upload a file with a unique name, like 'snarfelspritz.html' into the same directory as setup.pl.
Then ssh in and type:

'find / -name snarfelspritz.html'

The find command will return the path to the directory that contains snarfelspritz.html, so you can 'cd' to it... Before you can actually run setup.pl you need to make the file executable like so:

'chmod +x setup.pl'

then to actually run it when you are in the same directory it lives in type:

' ./setup.pl '


/* Sure, go ahead and code in your fancy IDE. Just remember: it's all fun and games until someone puts an $i out */

(Edited by norm on 09-11-2004 07:12)

« BackwardsOnwards »

Show Forum Drop Down Menu