Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #172585 > unrolled thread

Need a tutorial

Started byGene Heskett <gheskett@shentel.net>
First post2016-09-21 16:20 +0200
Last post2016-09-23 09:20 +0200
Articles 9 on this page of 49 — 11 participants

Back to article view | Back to linux.debian.user


Contents

  Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-21 16:20 +0200
    Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-21 16:30 +0200
      Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-21 22:40 +0200
        Re: Need a tutorial Lars Noodén <lars.nooden@gmail.com> - 2016-09-22 09:50 +0200
          Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-22 10:50 +0200
          Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 13:20 +0200
            Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-22 14:10 +0200
              Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 18:00 +0200
                Re: Need a tutorial Lars Noodén <lars.nooden@gmail.com> - 2016-09-22 18:10 +0200
                  Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 18:40 +0200
            Re: Need a tutorial Lars Noodén <lars.nooden@gmail.com> - 2016-09-22 14:10 +0200
              Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 18:20 +0200
                Re: Need a tutorial davidson@freevolt.org - 2016-09-23 05:10 +0200
      Re: Need a tutorial Jude DaShiell <jdashiel@panix.com> - 2016-09-22 15:50 +0200
        Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 18:20 +0200
    Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-21 18:30 +0200
      Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-21 22:50 +0200
      Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-22 17:40 +0200
        Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-22 17:50 +0200
          Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-22 18:20 +0200
        Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-22 18:10 +0200
        Re: Need a tutorial "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-22 18:20 +0200
          Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-22 18:20 +0200
            Re: Need a tutorial "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-22 18:30 +0200
              Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-22 20:10 +0200
              Re: Need a tutorial Stephan Beck <stebe@mailbox.org> - 2016-09-22 20:30 +0200
          Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-22 19:00 +0200
        Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-22 19:40 +0200
          sending authorized_keys to localhost from an account being created  with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 14:40 +0200
            Re: sending authorized_keys to localhost from an account being created with adduser --disabled-password [was] Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-23 15:00 +0200
              Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 16:20 +0200
                Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 16:20 +0200
              Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 22:30 +0200
            RESOLVED Re: sending authorized_keys to localhost from an account  being created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 15:10 +0200
              Re: RESOLVED Re: sending authorized_keys to localhost from an account  being created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 16:00 +0200
            Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-23 15:20 +0200
              Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial Stephan Beck <sbeck@secure.mailbox.org> - 2016-09-23 18:50 +0200
                Re: sending authorized_keys to localhost from an account being  created with adduser --disabled-password [was] Re: Need a tutorial <tomas@tuxteam.de> - 2016-09-24 16:10 +0200
    Re: Need a tutorial Dominique Dumont <dod@debian.org> - 2016-09-22 17:30 +0200
      Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-22 18:40 +0200
        Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-22 19:00 +0200
          Re: Need a tutorial Bob Bernstein <poobah@ruptured-duck.com> - 2016-09-22 20:10 +0200
            Re: Need a tutorial "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-22 21:00 +0200
        Re: Need a tutorial Lars Noodén <lars.nooden@gmail.com> - 2016-09-22 19:10 +0200
        Re: Need a tutorial Dominique Dumont <dod@debian.org> - 2016-09-22 20:20 +0200
          Re: Need a tutorial Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-22 20:40 +0200
            Re: Need a tutorial Dominique Dumont <dod@debian.org> - 2016-09-22 20:50 +0200
          Re: Need a tutorial Gene Heskett <gheskett@shentel.net> - 2016-09-23 04:30 +0200
            Re: Need a tutorial Dominique Dumont <dod@debian.org> - 2016-09-23 09:20 +0200

Page 3 of 3 — ← Prev page 1 2 [3]


#172672

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2016-09-22 19:00 +0200
Message-ID<skfvP-oP-9@gated-at.bofh.it>
In reply to#172670
On Thu, Sep 22, 2016 at 12:30:10PM -0400, Gene Heskett wrote:
> On Thursday 22 September 2016 11:16:45 Dominique Dumont wrote:
> > Others have explained how to generate keys. Then you can simplify the
> > process by setting up your ~/.ssh/config file with something like:
> >
> Interesting, I don't have that file, its all in /etc/ssh.

Create it if it doesn't exist.  Create the ~/.ssh/ directory first, if
that doesn't exist either.

> > Host shop lathe GO704
> >  user gene
> >  # private key file
> >  IdentityFile ~/.ssh/my_key_for_sshfs
> >
> > If you want to use different keys for the several hosts, you will have
> > to duplicate the config snippet shown above.

More generally, ~/.ssh/config (which does not exist by default but which
can be created) is the user-level configuration for the ssh client
program.  The system-level defaults are in /etc/ssh/ssh_config.

Also, as long as you're messing with ~/.ssh/config you might want to
set up a keepalive in case you ever communicate through a NAT router.

ServerAliveInterval 300

will send a packet every 300 seconds, which (hopefully) prevents a NAT
router from timing out your idle sessions.

(Yeah, I know, it says "Server" but it's a client-side config option.
I didn't choose the name.)

> > If you're not sure of the syntax of ssh config file, you can use
> > 'cme edit ssh' to perform this task.
> 
> cme=command not found.

I know nothing about this "cme" either.

[toc] | [prev] | [next] | [standalone]


#172679

FromBob Bernstein <poobah@ruptured-duck.com>
Date2016-09-22 20:10 +0200
Message-ID<skgBz-1j2-3@gated-at.bofh.it>
In reply to#172672
On Thu, 22 Sep 2016, Greg Wooledge wrote:

>> cme=command not found.

> I know nothing about this "cme" either.

Yes. Qu'est-que "cme?"

Some esoteric breed of editor?

-- 
IMPORTANT: This email is intended for the use of the individual
addressee(s) named above and may contain information that is
confidential, privileged or unsuitable for overly sensitive
persons with low self-esteem, no sense of humour or irrational
metaphysical beliefs.

[toc] | [prev] | [next] | [standalone]


#172685

From"Thomas Schmitt" <scdbackup@gmx.net>
Date2016-09-22 21:00 +0200
Message-ID<skhnZ-1Bu-55@gated-at.bofh.it>
In reply to#172679
Hi,

Dominique Dumont wrote:
> > > > If you're not sure of the syntax of ssh config file, you can use
> > > > 'cme edit ssh' to perform this task.

Gene Heskett wrote:
> > > cme=command not found.

Dominique Dumont wrote:
> > You need to install cme package:
> > $ sudo apt install cme

Greg Wooledge wrote:
> > I know nothing about this "cme" either.

You will love the first statement in its man page :)~

       cme - Check or edit configuration data with Config::Model

It invites us all to participate in improvement

   FEEDBACKS
       Feedback from users are highly desired.
   ...
   AUTHOR
       Dominique Dumont


Bob Bernstein wrote.
> Yes. Qu'est-que "cme?"

I guess perl docs can give info additional to the man page.
  http://search.cpan.org/dist/Config-Model/lib/Config/Model.pm
says

  "Config::Model - Create tools to validate, migrate and edit configuration
   files."
  "Config::Model enables a project developer to provide an interactive
   configuration editor (graphical, curses based or plain terminal) to
   users."

Obviously it knows several file formats and even the file names
which it shall operate on.
For me it checks my Debian packaging preparations by

  cme check dpkg

(Zero answer is good answer, then.)


Have a nice day :)

Thomas

[toc] | [prev] | [next] | [standalone]


#172674

FromLars Noodén <lars.nooden@gmail.com>
Date2016-09-22 19:10 +0200
Message-ID<skfFv-Hc-15@gated-at.bofh.it>
In reply to#172670
On 09/22/2016 07:30 PM, Gene Heskett wrote:
> On Thursday 22 September 2016 11:16:45 Dominique Dumont wrote:
...
>> Others have explained how to generate keys. Then you can simplify the
>> process by setting up your ~/.ssh/config file with something like:
>>
> Interesting, I don't have that file, its all in /etc/ssh.

ssh_config is probably the most under-appreciated part of the client.
Yet it's very useful.  Even a lot of 3rd party tools work with it.

The global file is /etc/ssh/ssh_config.  Most users have one located in
~/.ssh/config  For both, the full documentation is in the manual page
for "ssh_config".  If you add a lot of options then it saves a lot of
work to put them in ~/.ssh/config

If the file does not exist, you can make it with your choice of editor.
It follows the basic structure of Host + a pattern or name, followed by
options for that pattern or name.  For example, these blocks add a set
of options below for two remote hosts:

	Host 5501
	  Hostname 203.0.113.22
	  IdentitiesOnly yes
	  IdentityFile ~/.ssh/key_22_ed25519
	  AddKeysToAgent yes
	  ServerAliveCountMax 2
	  ServerAliveInterval 30
	  Port 2223

	Host 33
	  User xyzzy
	  HostName 203.0.113.11
	  ControlPath ~/.ssh/controlmasters/%r@%h:%p
	  ControlMaster autoask
	  ControlPersist yes

The first host with its set of options is available via "ssh 5501", just
as the second one is available via "ssh 33".  The latter would be the
equivalent of

  ssh -o ControlPath=~/.ssh/controlmasters/%r@%h:%p \
	 -o ControlMaster=autoask \
	 -o ControlPersist=yes \
	 xyzzy@203.0.113.11

Or something like that.

I recommend grabbing a refreshment, finding a comfy chair, and working
through the manual page for ssh_config paragraph by paragraph at least
once if you connect to a lot of servers or use a lot of options when
connecting.

Regards,
Lars

[toc] | [prev] | [next] | [standalone]


#172680

FromDominique Dumont <dod@debian.org>
Date2016-09-22 20:20 +0200
Message-ID<skgLg-1mw-37@gated-at.bofh.it>
In reply to#172670
On Thursday, 22 September 2016 12:30:10 CEST Gene Heskett wrote:
> If you're not sure of the syntax of ssh config file, you can use
> 
> > 'cme edit ssh' to perform this task.
> 
> cme=command not found.

You need to install cme package:
$ sudo apt install cme

This will install al required dependencies unless you've configured apt to 
avoid installation of recommended dependencies.

HTH

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

[toc] | [prev] | [next] | [standalone]


#172682

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2016-09-22 20:40 +0200
Message-ID<skh4C-1rX-57@gated-at.bofh.it>
In reply to#172680
On Thu, Sep 22, 2016 at 08:18:30PM +0200, Dominique Dumont wrote:
> On Thursday, 22 September 2016 12:30:10 CEST Gene Heskett wrote:
> > If you're not sure of the syntax of ssh config file, you can use
> > 
> > > 'cme edit ssh' to perform this task.
> > 
> > cme=command not found.
> 
> You need to install cme package:
> $ sudo apt install cme

wooledg@wooledg:~$ apt-cache show cme
N: Unable to locate package cme
E: No packages found

[toc] | [prev] | [next] | [standalone]


#172683

FromDominique Dumont <dod@debian.org>
Date2016-09-22 20:50 +0200
Message-ID<skhei-1xN-43@gated-at.bofh.it>
In reply to#172682
On Thursday, 22 September 2016 14:29:53 CEST Greg Wooledge wrote:
> wooledg@wooledg:~$ apt-cache show cme
> N: Unable to locate package cme
> E: No packages found

Ah sorry, cme package is available on testing and sid.

On Jessie, cme command is delivered by libconfig-model-perl.
I don't remember how the dependencies were organised, so please  install also
libconfig-model-openssh-perl and libconfig-model-tkui-perl

All the best

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

[toc] | [prev] | [next] | [standalone]


#172695

FromGene Heskett <gheskett@shentel.net>
Date2016-09-23 04:30 +0200
Message-ID<skopr-6bb-1@gated-at.bofh.it>
In reply to#172680
On Thursday 22 September 2016 14:18:30 Dominique Dumont wrote:

> On Thursday, 22 September 2016 12:30:10 CEST Gene Heskett wrote:
> > If you're not sure of the syntax of ssh config file, you can use
> >
> > > 'cme edit ssh' to perform this task.
> >
> > cme=command not found.
>
> You need to install cme package:
> $ sudo apt install cme
>
Apparently not available for wheezy.

> This will install al required dependencies unless you've configured
> apt to avoid installation of recommended dependencies.
>
> HTH


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#172698

FromDominique Dumont <dod@debian.org>
Date2016-09-23 09:20 +0200
Message-ID<sksW6-Dp-19@gated-at.bofh.it>
In reply to#172695
On Thursday, 22 September 2016 22:27:14 CEST Gene Heskett wrote:
> On Thursday, 22 September 2016 12:30:10 CEST Gene Heskett wrote:
> > > If you're not sure of the syntax of ssh config file, you can use
> > > 
> > > 
> > > 
> > > 
> > > cme=command not found.
> > 
> > You need to install cme package:
> > $ sudo apt install cme
> 
> Apparently not available for wheezy.

On Jessie and Wheezy, cme command is delivered by libconfig-model-perl.
I don't remember how the dependencies were organised, so please  install also
libconfig-model-openssh-perl and libconfig-model-tkui-perl

cme package is available on testing and sid.

All the best

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

[toc] | [prev] | [standalone]


Page 3 of 3 — ← Prev page 1 2 [3]

Back to top | Article view | linux.debian.user


csiph-web