FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-04-2009, 06:50 PM
Peter Jones
 
Default Improve logging of ssh-keygen.

Log stdout/stderr of each ssh-keygen invocation to its own log file.
---
anaconda | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index ae759c0..ef891de 100755
--- a/anaconda
+++ b/anaconda
@@ -399,7 +399,12 @@ def setupGraphicalLinks():
def createSshKey(algorithm, keyfile):
path = '/etc/ssh/%s' % (keyfile,)
argv = ['-q','-t',algorithm,'-f',path,'-C',','-N',']
- iutil.execWithRedirect('ssh-keygen', argv, searchPath=1)
+ log.info("running "%s"" % (" ".join(['ssh-keygen']+argv),))
+
+ so = "/tmp/ssh-keygen-%s-stdout.log" % (algorithm,)
+ se = "/tmp/ssh-keygen-%s-stderr.log" % (algorithm,)
+ iutil.execWithRedirect('ssh-keygen', argv, stdout=so, stderr=se,
+ searchPath=1)

def startSsh():
if not flags.sshd:
--
1.6.5.rc2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-05-2009, 09:32 PM
Peter Jones
 
Default Improve logging of ssh-keygen.

<clumens> pjones: did you test your patches with a kickstart file with
the user command and also verify that you can login as root
after an install?
<pjones> the former yes, the latter no.
<pjones> I can test that out if you like.
<clumens> please

I've now tested this, and it works as planned.

--
Peter

The trouble with the global village are all the global village idiots.
-- Paul Ginsparg

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-06-2009, 01:03 PM
Chris Lumens
 
Default Improve logging of ssh-keygen.

> <clumens> pjones: did you test your patches with a kickstart file with
> the user command and also verify that you can login as root
> after an install?
> <pjones> the former yes, the latter no.
> <pjones> I can test that out if you like.
> <clumens> please
>
> I've now tested this, and it works as planned.

Then, ACK.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org