Report an Issue | Log In | Sign Up   View a printable version of the current page.


SunSSH

SunSSH FAQ


Added by vladimir.kotal , last edited by janp2 on Jan 28, 2008  (view change)
Labels: 

This page serves as unofficial SunSSH FAQ. The main purpose of this page is to highlight the differences of SunSSH compared to other SSH protocol implementations and also to provide information about Solaris specific SSH features.

Folks outside Sun who are interested in contributing to this page please add a comment with your contact info to this page and we will get in touch with you.

  • why not to replace our SSH with recent OpenSSH?

    TBD

  • how to run ssh with kerberos (see blog entry)

    TBD

  • how to run SSH/SSHD in debug mode

    Run the following commands (in the order they are listed):

    • run the following command on the server:
      /usr/lib/ssh/sshd -ddd -p 2222 2>/tmp/sshd_debug
    • run the following command on the client:
      ssh -p 2222 -vvv INSERT_YOUR_USERNAME_HERE@INSERT_HOSTNAME_OF_THE_SERVER_HERE 2>/tmp/ssh_debug
    • send the contents of files /tmp/sshd_debug and /tmp/ssh_debug to the person working on the bug
      NOTE: The sshd process terminates after ssh process ends.
      NOTE: If more debug information is needed then the sshd command can be run via truss. (just prepend truss -f to the command)
      NOTE: Please do check really carefully that the 2 files contain meaningful data. (e.g. there is visible connection attempt in /tmp/sshd_debug) Passing debug files missing requested information just wastes the time of the engineer working on a bug.

    If for some reason it is not possible to run sshd process separately (e.g. SMF debugging) it is possible to use (for S10 and later) the following:

    • stop ssh service via svcadm disable network/ssh
    • start sshd in debug mode via /usr/lib/ssh/sshd -d -d -d
    • NOTE: note this only allow one forked connection in, then dies
    • start ssh service again by running svcadm enable network/ssh
  • Disconnecting: Corrupted MAC on input

    TBD

  • motd/banner questions - motd is in /etc/profile, PrintMotd, Banner

    TBD

  • user-to-role. Why it works only with hostbased? Why not pubkey?

    TBD

  • why role-to-role does not work ?

    TBD

  • SecureID & SunSSH

    TBD

  • sshd closing connections, see "SSH timing out"

    TBD

  • I copied client's public key to authorized_keys in my .ssh on the server. Pubkey auth still not working. Why?

    check permissions on authorized_keys file

  • When using pubkey authentication, I don't see warnings about upcoming password expiration

    That's correct, it doesn't work with public key authentication. Such message is provided by PAM and pubkey authentication method doesn't have a way how to transfer it over to the client side.



Updated by WVUSYS
Feb 12, 2008 17:48

I'm wondering when SunSSH will support "Match User username" and "ForceCommand" as OpenSSH v 4.2+ does. Is there any talks of adding this soon or is this already implemented? If it is, what patch/package do I download to upgrade SunSSH to support these features.

William Aucremanne

hi William, I filed two CRs:

6655613 resync server's conditional Match block from OpenSSH
6655614 resync server's ForceCommand from OpenSSH

I can't promise anything but both keywords are very useful and personally I would like to see them in SunSSH. Feel free to ask more questions on security-discuss@opensolaris.org.

Jan.

The individuals who post here are part of the extended Sun Microsystems community and they may not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact