Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just started with SSH 10 minutes ago. I enter:

ssh lisv22@chusmix.com
my password

And get:

Last login: Fri Sep  9 20:31:29 2011 from 190.220.54.6
-bash-3.2$

Which I suppose means I connected successfully. However when trying to access any directory on my root I get an error.

E.G:

/game

returns /game: No such file or directory. Btw I also tried /html/game

What am I doing wrong? / how do I get a list of directories?

share|improve this question

migrated from stackoverflow.com Feb 13 '12 at 2:20

This question came from our site for professional and enthusiast programmers.

1  
FYI, the domain you mention has an XSS vulnerability. –  icktoofay Sep 10 '11 at 4:03
    
out of interest, how did you find that out? –  madphp Feb 13 '12 at 2:27
    
You're not new to SSH. You're new to *nix my friend –  LatinSuD Sep 10 '13 at 11:03

2 Answers 2

up vote 1 down vote accepted

Are you just typing the name of the directory? That will make bash try to execute it as if it was a command.

Use cd to navigate directories and ls to list files in that directory:

cd /game          # sets the working directory to /game
ls                # lists all files in /game (since the default is the working directory)
ls /html/game     # lists all files in /html/game
share|improve this answer

You can try ssh lisv22@chusmix.com 'ls' to view directory listing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.