LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2019, 07:35 PM   #1
baldur_1
Member
 
Registered: Sep 2010
Posts: 212

Rep: Reputation: 20
ssh token issue


okay so i have rsync and unison running on my network. i use a ssh-key passthrough thing to allow my pc to transfer files to my server. for some reason now that has stopped. i am running fc 29 kde on my pc and fc 29 server on my server. here is the code i run...

Code:
[user@server my_logs]$ ssh-copy-id -i /home/user/.ssh/id_rsa.pub user@server.ip
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/user/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
user@server.ip's password: 

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'user@server.ip'"
and check to make sure that only the key(s) you wanted were added.

[user@server my_logs]$ ssh server.ip
user@server.ip's password:
i have been doing this for years now and for some reason now it is saying it passes the ssh token to my server and i can see it in the known hosts file but when i try and 'ssh user@server' it asks for my password so unison and rsync cannot sync.

anyone know what the deal is?

Last edited by baldur_1; 08-05-2019 at 07:36 PM. Reason: security
 
Old 08-05-2019, 07:44 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,041

Rep: Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331
Have you examined the sshd log entries on the server side?

If not, please do.
 
Old 08-05-2019, 07:44 PM   #3
baldur_1
Member
 
Registered: Sep 2010
Posts: 212

Original Poster
Rep: Reputation: 20
i fingered it out. somehow my permissions to my ssh directory got whacked. i ended wiht 720 so after i reset it to

Code:
chmod -Rf 700 /home/user/.ssh
that solved it. thanks anyway...weird how that flipped!
 
Old 08-05-2019, 07:45 PM   #4
baldur_1
Member
 
Registered: Sep 2010
Posts: 212

Original Poster
Rep: Reputation: 20
thanks wpeckham but yeah, that is how i figured it out. when i checked my server ip it said the permissions were out of whack. the odd thing is it worked prior on the same set-up and all. just stopped working at some point and i am certain i changed nothing...
 
Old 08-05-2019, 07:52 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Quote:
for some reason now that has stopped.
I assume it was working previously. Have you changed anything on either the client or server?

Have you tried using debug i.e -vvv option to see if there is anything obviously going wrong?

Never mind...
 
  


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
net-snmp - Invalid Token issue fruitwerks Linux - Networking 0 11-21-2009 11:17 PM
[SOLVED] "Error: syntax before '@' token and Error: syntax at 'OTHER' token" bullrider Programming 2 07-27-2009 08:00 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
SSH session manager and VPN + USB crypto token NiccoTS Linux - Security 0 03-13-2007 07:18 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:10 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