I used putty to connect to a server - how do I actually log in?


Recommended Posts

Sorry, I am a complete newb when it comes to Unix and I should know better by now.

 

Anyway, I'm able to connect to a server using Putty but directories are write locked and it's likely because I haven't really logged in yet.  How do I login after connecting to a server?

Link to comment
Share on other sites

If you see the command prompt you are logged in.

 

putty2.png

 

If you can't access anything it's because the user you are using doesn't have the right to access anything outside of the home folder.

Link to comment
Share on other sites

The command to login from the prompt is simply login. But you can do it directly from putty. And anyway the command should technically be run automatically when you connect it think.

Link to comment
Share on other sites

You can do the command groups to know i which group you are.

 

Then you can do ls -la to see a listing of the files.

 

Ls_command_result.png

 

The first column is the right of the files. First letter is the type i think. Next 3 letters the right for the owner. Next 3 letters the right for the group and the next 3 letters the right for everyone. r = read. w = write. x = execute. The next column is the owner of the file and the following column the group.

 

IN this screenshot the owner is root and the group is root. Mostly all files are read only for people not root . So if you are not logged in as root you can just read them.

Link to comment
Share on other sites

Looks like he had ssh'd into the server after logging in.  I misinterpreted what he was doing completely but understand now.  Thanks guys


Thanks LaP!  That's helps

Link to comment
Share on other sites

quite often user account does not have permissions on the system - what files are you trying delete/create/edit - what directory are you in?  Normally once you login as you, you would su up to root to get access to whatever it is you need to access on the system other than your own files, etc..

 

I use kitty vs putty (just a fork with some added features).. So I auth as budman with public key, I always disable password auth on any ssh box I run.. especially if public facing, etc.

 

post-14624-0-45996000-1427643316.png

 

So you can see I auth as budman using my public key, not really new anymore from 2012, but the old one was from pre 2ks ;)

 

So I am logged in as budman you can see that at prompt, and I am in the folder /home/budman - I thin su up and put in my password and now I am root still in the /home/budman folder.

Link to comment
Share on other sites

Hey.  It looks like specific folders are locked down because we have to CVS changes.  I can't actually write into specific folders because it's locked down to a system account.  I ended up creating the files in a folder I could access.  Thank you!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.