Giter Club home page Giter Club logo

Comments (2)

mcortizo avatar mcortizo commented on May 22, 2024

Hi Rafael!

I always login to remote servers with my private key, as it is more convenient than passwords.
If you have a public/private keys pair you can type this to put your public key into the remote server:

cat ~/.ssh/id_dsa.pub | ssh [email protected] 'cat - >> ~/.ssh/authorized_keys2'

If not, follow the instructions in http://mah.everybody.org/docs/ssh (previous code is from that page) to generate the pair and then put the public one into the server.

When you try to connect to a remote server, ssh asks for a password or a passphrase to unlock your private key, depending on the server configuration and the information it has about you (basically, your public key).
A tool called ssh agent can keep in the memory of your local terminal the information needed to access the private key, so you don't need to type your password or passphrase each time.

To start the ssh agent, type

ssh-add

Then, you'll be asked for the passphrase. After that, you should access to the remote server with no more prompts.

I hope this help you

from ngxtop.

rajaravivarma-r avatar rajaravivarma-r commented on May 22, 2024

Even I am facing this issue. I have to su - production_user to another user, for accessing the log files. production_user doesn't have direct ssh access. I don't know how to proceed with this.

from ngxtop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.