0

I am usng ubuntu 10.04
I have installed on both computers
sudo apt-get install ssh

I have the problem I want to connect from comp1 to comp2.
I crate my rsa.

comp1@laptop$ ssh-keygen -b1024 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/comp1/.ssh/id_rsa):

Enter passphrase (empty for no passphrase): testingtesting
Enter same passphrase again: testingtesting
Your identification has been saved in /home/comp1/.ssh/id_rsa.
Your public key has been saved in /home/comp1/.ssh/id_rsa.pub.
The key fingerprint is:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx comp1@laptop
The key's randomart image is:

I have root pass for comp2 as 2xx3xx
I have root pass for comp1 as 3xx2xx

comp1@laptop -l user1@ipno
user1@ipno's password: 2xx3xx
Permission denied, please try again.
comp1@laptop's password: testingtesting
Permission denied, please try again.
comp1@laptop's password: 3xx2xx

So i do as follow a sugestion that said use root.

It gave the same answer

root@laptop -l user1@ipno
root@ipno's password: 2xx3xx
Permission denied, please try again.
root@ipno's password: testingtesting
Permission denied, please try again.
root@ipno's password: 3xx2xx

Please help, please help

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by tlkummell
0

You should be using the account password for user1, not the root password.

As for connecting as root noramlly ssh is configured to reject root logins via ssh.

Edited by shibblez: n/a

0

On my systems, I have do the following:
ssh-keygen -t dsa
The utility asks for the filename in which to save the key. I entered the following:
/root/.ssh/dev32_id_dsa (dev32 is the hostname)
I entered an empty passphrase, twice.
accepted the default of /root/.ssh/id_dsa.
In this directory, I have four files. authorized_keys, id_rsa, id_rsa.pub, and known_hosts.

Normally, I copy the id_rsa.pub file from computer#1 to /home/terryk/.ssh/ like this:
scp id_rsa.pub computer#2:/home/terryk/.ssh/id_rsa.pub.computer1
Then I add it to the authorized_keys files like this:
cat id_rsa.pub.computer1 >> authorized_keys (if the authorized_keys file does not exist, then)
cat id_rsa.pub.computer1 > authorized_keys

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.