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

Recommended Answers

All 2 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.