LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-14-2008, 07:54 AM   #1
sing_r
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, 08:52 AM   #2
KianTern
LQ Newbie
 
Registered: Apr 2008
Posts: 11
Blog Entries: 2

Rep: Reputation: 0
Hi,
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: http://www.sshkeychain.org/mirrors/S...s-HOWTO-4.html
 
  


Reply


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 09:23 AM
Just loaded Mepis 6.0 - French user - make new user - speed of machine NewbiePenguinista MEPIS 3 01-04-2007 05:03 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 03:47 PM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM


All times are GMT -5. The time now is 08:26 PM.

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