Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-14-2008, 06:54 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
how to configure ssh as different user on same machine

how to configure ssh as different user on same machine, so that it wont ask for password

for example :
I am on machine node1 and logged in as userA, want to run below command, it should login without asking password for userB

userA@node1$ ssh -l userB node1
Old 12-14-2008, 07:52 AM   #2
LQ Newbie
Registered: Apr 2008
Posts: 11
Blog Entries: 2

Rep: Reputation: 0
The configuration you need is the same as with connecting to remote hosts.
Lets say the you are connected as UserA and need to switch to User B without entering the password.
The basic steps are:
Generate ssh key as UserA.
Copy the ssh key to /home/UserB/.ssh/
connect using "ssh UserB@localhost".

for more detailed info see:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add users to ssh (Configure ssh) A.Sai Hareesh Linux - Newbie 2 06-30-2008 08:23 AM
Just loaded Mepis 6.0 - French user - make new user - speed of machine NewbiePenguinista MEPIS 3 01-04-2007 04:03 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration