Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So is ddisk-net an actual identity or user on 192.168.0.4? I see that you created the directory structure in /home, I'm also assuming you copied the pub key over to this host when you created it on 192.168.0.2, but it has to be an actual user. More details get better responses.
In your debug, you have: Administrator@windstory-PC ~/.ssh
$ ssh -vvv ddisk-net_vb
trickykid/
1. yes. ddisk-net is user of 192.168.0.4.
2. I have made directories for ssh on 192.168.0.2 and 1921.168.0.4.
3. I made ssh.conf at "/etc/" of 192.168.0.2 as follows:
Quote:
host ddisk-net_vb
hostname test.net
user ddisk-net
port 22
identityfile /home/ddisk-net/.ssh/ddisk-net_pc_p
compression yes
protocol 2
This thread helped me out. My resolution was slightly different. I was getting:
Code:
debug1: Trying private key: rufirstpk.ssh
debug3: no such identity: rufirstpk.ssh
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
trickykid's question of whether the ID existed on the server made me question the filename, because 'rufirstpk' is not an identity or a user on the machine I'm trying to SSH to. I renamed the file to a correct user:
Code:
mv rufirstpk.ssh ec2-user.ssh
This change meant I had to change my .ssh/config:
Code:
Host et
HostName ec2.amazon.com
User ec2-user
IdentitiesOnly yes
IdentityFile ec2-user.ssh
To my delight, I was able to log in! I hope this variation of the resolution helps someone out!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.