Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

my password

And get:

Last login: Fri Sep  9 20:31:29 2011 from

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



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 Feb 13 '12 at 2:20

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

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
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 'ls' to view directory listing.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .