Opened 8 months ago

Last modified 6 weeks ago

#1019 assigned task

BCCD user SSH key generation and publication

Reported by: skylar Owned by: skylar
Priority: major Milestone: 3.4.0-build_ng
Component: Both Version: 3.4.0
Keywords: Cc:
Blocked By: Blocking:
Estimated Hours: 4 Total Hours:

Description

use avahi.services

Change History (4)

comment:1 Changed 8 months ago by skylar

In 6159//cluster/svnroot:

first pass at script to publish SSH keys re #1019

comment:2 Changed 4 months ago by skylar

In 6160//cluster/svnroot:

use a temporary file, only publish new service if the file differs re #1019

comment:3 Changed 4 months ago by skylar

  • Status changed from new to assigned

parse out the key for authorized_keys (need to figure out where to put this):

avahi-browse -prt _bccd._tcp \
   | awk -v BCCD_NIC="${BCCD_NIC}" '
BEGIN { 
   FS=";";
}
$2 == BCCD_NIC && $3 == "IPv4" && $9 == 22 {
   gsub(/"/,"",$10);
   split($10,key,"=");
   split(key[1],key_info,"-");
   print key_info[2] "-" key_info[3] " " key[2]}' \
   > ~/.ssh/authorized_keys

comment:4 Changed 6 weeks ago by skylar

test

Note: See TracTickets for help on using tickets.