The procedure for renaming a Solaris 10 local zone's hostname is not well 
documented. By trial and error, Sun support and I worked out the following.

When setting up a new local zone, "unsetenv TMPDIR" or a number of key packages 
will fail to install in the new zone.

"hostname newHostName" and make sure /etc/nodename, /etc/inet/hosts, and 
/etc/inet/ipnodes have the appropriate entries for the new hostname.

"zlogin -C newZone" to allow sysIDtool to complete.

# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
 Generating public/private rsa key pair.
 Enter file in which to save the key (//.ssh/id_rsa): /etc/ssh/ssh_host_rsa_key

# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
 Generating public/private dsa key pair.
 Enter file in which to save the key (//.ssh/id_dsa): /etc/ssh/ssh_host_dsa_key

Kill any existing sshd and run the ssh start method /lib/svc/method/sshd start

Fix /etc/nsswitch.conf (defaults to bogus NIS stuff).

--Bruce <[EMAIL PROTECTED]>
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to