LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-02-2017, 08:43 AM   #1
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
Speed up ssh (Reuse SSH Connection) issue


dear all
I need to speed up ssh connection with multiplexing
i search forum and found
http://www.linuxquestions.org/questi...ection-936825/

i follow the example from jschiwal
FYI system is centos 7 with selinux disabled

i create a ~/.ssh/config
Quote:
Host *
ControlMaster auto
ControlPath ~/.ssh/control-master/%r@%h:%p
also
Quote:
mkdir ~/.ssh/control-master
and the issue is

Quote:
[routers@localhost ~]$ nano -w ~/.ssh/config
[routers@localhost ~]$ mkdir ~/.ssh/control-master
[routers@localhost ~]$ ssh routers@localhost
Bad owner or permissions on /home/routers/.ssh/config
[routers@localhost ~]$
any idea ?

to mod: if wrong place for this, please move accordingly

thanks
 
Old 05-02-2017, 08:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
have you checked that owner and permission ?
 
Old 05-02-2017, 08:55 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787

Original Poster
Blog Entries: 6

Rep: Reputation: 75
yeah

Quote:
[routers@localhost ~]$ ls -al /home/routers/.ssh/config
-rw-rw-r--. 1 routers routers 85 May 2 21:34 /home/routers/.ssh/config
 
Old 05-02-2017, 08:58 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
see man ssh_config
Code:
FILES
     ~/.ssh/config
             This is the per-user configuration file.  The format of this file is described above.  This file is used by the SSH client.  Because of the poten‐
             tial for abuse, this file must have strict permissions: read/write for the user, and not accessible by others.  It may be group-writable provided
             that the group in question contains only the user.
 
Old 05-02-2017, 11:43 AM   #5
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787

Original Poster
Blog Entries: 6

Rep: Reputation: 75
how to go for it, i need to use multiplexing with my centos 7
 
Old 05-03-2017, 12:01 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you need to set permissions: chmod 600 ~/.ssh/config
 
  


Reply



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
Rsync over ssh connection issue, and perms issue thekraken99 Linux - Server 2 01-26-2015 07:50 PM
ssh connection issue boludu Linux - Newbie 2 02-11-2013 04:03 AM
SSH Connection Issue techM Solaris / OpenSolaris 2 07-02-2010 11:12 AM
How do I reuse one ssh connection in a shell script? jabalsad Linux - Software 8 03-08-2010 11:04 PM
ssh connection speed submarine99 Linux - Software 2 02-07-2006 08:00 AM

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

All times are GMT -5. The time now is 02:32 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
Open Source Consulting | Domain Registration