Linux Fundamentals

Type your comment> @TazWake said:

@NightSleuth said:

Type your comment> @TazWake said:

@NightSleuth said:

It won’t let me switch to user htb-student because this user doesn’t exist. So how am I suppose to ssh a machine with this user if it doesn’t exist?

How are you trying to switch to the user? You ssh in as that user account.

I can’t even login to that user in order to ssh with the right user.

I am not sure I understand this.

You don’t login as that user in order to ssh as that user. You login to your system as any user who is valid on your system.

Then you ssh into the box as the htb-student user.

So just to check:

  • you click on the link to spawn the target system and it will give you an IP address.
  • you ssh in with ssh htb-studen@(whatever IP it gave you) and then use the password provided.

If you are tying to switch user before you have SSH’d in, you are trying to switch on your local system.

OOhhhh, I didn’t know that that was the sintaxe. I was trying something different. I probably didn’t understand a concept; cause I didn’t really know about the @ and then the IP. I’m still a noob (just for the record). It worked. Thank you though. :slight_smile: