Forwarding login screen over SSH

Hi,
I am trying to forward my Solaris login screen to my PC running an X server. I want to forward the login screen that says
"Welcome to <hostname>
Solaris
Please enter your user name"
How do I go about this? What is the file in Soalris that boots this screen on start up? I can forward a CDE session to my PC, but I dont want to do that. I need this login screen.
Appreciate the help guys,
David.

Hello.
With my old computer I managed to display this screen on a Windows X client using XDM. On my new machine I did not manage this because dtgreet does not work on remote machines when having installed the latest patches.
Using SSH it is not possible to show this screen at all.
If it was possible with another version of dtgreet you had to log-in as "root" using SSH (it would not work with another user) which is a problem because SSH typically denies root access.
The question is: Why do you wish to show this display on the remote machine? Maybe there is a better way to archieve the goal you actually want.
Martin

Similar Messages

  • X forwarding suddenly failing over ssh

    Hi,
    I have an Ultra 20 running solaris 10, and recently started using the patch manager thingy to update my machine automatically. Well, one of those patches botched X11 forwarding over ssh, with the following error message delivered to the client:
    ==================
    Sun Microsystems Inc. SunOS 5.10 Generic January 2005
    connect /tmp/.X11-unix/X0: Not a directory
    X connection to localhost:10.0 broken (explicit kill or server shutdown).
    ==================
    Looking at this file, i see this:
    ==================
    pwd/tmp/.X11-unix
    ls -FCltotal 0
    srwxrwxrwx 1 root root 0 Oct 12 19:31 X0=
    ==================
    Which looks more or less correct for a socket. (doing just a plain "ls" returns "X0", and not "X0=").
    When run in debug mode, sshd gives this:
    ==================
    debug1: X11 connection requested.
    debug1: channel 3: new [X11 connection from ::1 port 33274]
    channel 3: open failed: administratively prohibited: open failed
    debug1: channel 3: free: X11 connection from ::1 port 33274, nchannels 4
    ==================
    This was working perfectly for a long time, and I don't even know which patch it was that caused the problem.
    Help! I can't stand developing with VI any more! Must run xemacs...
    Thanks,
    Ben

    Hello.
    With my old computer I managed to display this screen on a Windows X client using XDM. On my new machine I did not manage this because dtgreet does not work on remote machines when having installed the latest patches.
    Using SSH it is not possible to show this screen at all.
    If it was possible with another version of dtgreet you had to log-in as "root" using SSH (it would not work with another user) which is a problem because SSH typically denies root access.
    The question is: Why do you wish to show this display on the remote machine? Maybe there is a better way to archieve the goal you actually want.
    Martin

  • URxvt - Handle clickable links and irssi with screen over ssh ?

    Hi,
    I use URxvt as a replacement to gnome-terminal. But I can't manage to make three things working :
    - First, I followed the wiki to set clickable links. It worked but since a little time (I don't know really when it stopped working) URxvt only colors the links. When I click on them, it doesn't do anything.
    Here is my .Xresources :
    ! Taille par défaut
    URxvt*geometry: 100x30
    ! Police TTF
    URxvt*font: xft:Bitstream Vera Sans Mono:style=Regular:pixelsize=12:antialias=true
    ! Taille du buffer et barre de défilement
    URxvt*saveLines: 10000
    URxvt*scrollBar: true
    URxvt*scrollBar_right: true
    URxvt*scrollColor: #c2dd5a
    URxvt*scrollBar_floating: true
    URxvt*scrollstyle: plain
    ! Curseur et nom du terminal
    URxvt*cursorColor: white
    URxvt*termName:xterm
    ! Couleurs
    URxvt*foreground: #ffffff
    !URxvt*background: #000000
    ! Black
    URxvt*color0: #101010
    URxvt*color8: #2e3436
    ! Red
    URxvt*color1: #cc0000
    URxvt*color9: #ff361e
    ! Green
    URxvt*color2: #8ae234
    URxvt*color10: #93ff00
    ! Yellow
    URxvt*color3: #ffc005
    URxvt*color11: #ffd00a
    ! Blue
    URxvt*color4: #004f9e
    URxvt*color12: #0071ff
    ! Purple
    URxvt*color5: #e50060
    URxvt*color13: #eb0061
    ! Cyan
    URxvt*color6: #4bb8fd
    URxvt*color14: #34E2E2
    ! White
    URxvt*color7: #eeeeec
    URxvt*color15: #f2f2f2
    ! Utilisation de la vraie transparence
    URxvt*depth: 32
    URxvt*background: rgba:0000/0000/0000/cccc
    ! Onglets
    URxvt*.perl-ext: tabbed
    URxvt.tabbed.tabbar-fg: 2
    URxvt.tabbed.tabbar-bg: 0
    URxvt.tabbed.tab-fg: 3
    URxvt.tabbed.tab-bg: 0
    ! Liens
    URxvt.perl-ext-common: default,matcher,fullscreen
    URxvt.urlLauncher: /usr/bin/firefox
    URxvt.matcher.button: 1
    URxvt.colorUL: #4682B4
    ! Fullscreen
    URxvt*keysym.F11: perl:fullscreen:switch
    ! touches home et end
    URxvt*keysym.Home: \033[1~
    URxvt*keysym.End: \033[4~
    - I'd like to automatically launch an urxvt term at startup and connect to an irssi screen session on a remote server (via ssh).
    I tried : urxvt -e "ssh user@remote -t irc" where irc is an alias on the remote server that attach the irssi screen session. The problem is that with this command, urxvt opens and close immediately. I then tried to add the -hold option and various combination of "bash -c" I saw on the forum but nothing worked...
    - And finally, how can I use nautilus-open-terminal to open a urxvt term in a specific folder ? I set the correct entries in dconf-editor and followed the wiki page but it doesn't work...
    Thanks
    Last edited by doupod (2013-04-06 16:42:18)

    I had similar but different issues regarding this.  Now, i have 256 color support in whatever terminal/ssh/screen session I'm in.
    The relevant config lines:
    .Xdefaults:
    XTerm*termName: xterm-256color
    URxvt*termName: rxvt-256color
    .vimrc
    " 256 colors only if you can handle it
    if $TERM =~ "-256color"
    set t_Co=256
    colorscheme zenburn
    endif
    .screenrc
    # term
    term xterm-256color
    # main options
    altscreen on
    attrcolor b ".I"
    defbce "on"
    # some termcaps
    termcapinfo xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    termcapinfo rxvt-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    note: this setup caused an issue where background colors in mutt/htop inside screen did not extend passed the line's text.  i had to solve that via this workaround.
    Last edited by brisbin33 (2009-07-31 21:28:55)

  • Looped Login Screen

    I had Yosemite but found out it doesn't support After Effects and others apps so I tried to reistall 10.6.8 from Time Machine. I keep being directed to the blue login screen over and over again. Each time I enter my login correctly,but each time it redirects me to the blue login screen. I can boot up in safe mode and tool around no problem. How do I fix this?

    Greetings monkeytoesfilm,
    Thanks for participating in the Apple Support Communities.
    If you only see a blue screen after reverting to OS X 10.6.8 with Time Machine, but Safe Mode works normally, try these troubleshooting steps next:
    Mac OS X 10.6: If you see a blue screen at startup
    If you see the login window prompting you for a user name and password, but starting up doesn't progress, you may have incompatible login items.
    Eliminating incompatible login items
    Repair your startup disk or disk permissions by starting up from your Mac OS X installation disc and using Disk Utility.
    Repairing a disk
    Back up your disk and then reinstall Mac OS X by starting up your computer with your Mac OS X installation disc.
    Reinstalling Mac OS X
    Sincerely,
    Jeremy

  • Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    OS X Lion: Login window partially appears, cursor movement redraws screen

  • Blank screen when rebooting an ibm thinkpad over ssh

    I have an ibm thinkpad t23, and when i reboot it over ssh with closed lid the screen is blank, i can't see no tty or something but the screen works, and i need to reboot it with an open lid so i can use the screen. Anyone expirienced a similar issue?, google is not really helpfull. Thanks

    In my opinion what is happening is that the backlight is just not turned on when the computer comes back up. If this compter has X on it I would recommend trying to startx as when it starts it will take over control of the backlight. Or,you could try running
    # echo 5 > /sys/class/backlight/acpi_video0/brightness
    as root. Finally xbacklight may help if you can get X running.

  • Can't forward X over ssh anymore

    I'm not really getting any error messages, it only says "can't open display" when I try to lauch an app. Everything seems okay using -vv to get info:
    debug1: Requesting X11 forwarding with authentication spoofing.
    then it just logs in without any error.
    I moved the ~/.Xauthority on the client machine, and then got this error - i wonder if has something to do with the .Xauthority?
    Warning: No xauth data; using fake authentication data for X11 forwarding.
    I can ssh into a fedora box and launch apps, but not arch. Anyone have a suggestion of where I can start looking? Xorg.log is also giving absolutely nothing.

    sinister99 wrote:
    slackhack wrote:
    I think I got it. Add this line (or uncomment) to /etc/ssh/sshd_config, and restart the daemon:
    X11UseLocalhost yes
    Didn't work for me; are you connecting to another box, or are you on the same computer?
    i'm on my laptop, connecting to my desktop. uncomment the line on the server box and restart the daemon, if that's not what you did.
    also do echo $DISPLAY on the client (i think it should be something like :0.0), and on the server when you log in with X forwarded (should be a higher number, like :10.0).
    also, make sure to run ssh with -vv flags to see if you get any error messages.

  • Logging in sends me to the login screen again. Over and over....

    Have an old MacPro (early 2008). Used to have OS 10.6.8 but subdued to the temptation and installed Mavericks last week.
    Regretfully, it made my machine slower than ever. I mean REALLY slow. I tried various remedies to no avail.
    Eventually, I realised I had to go back to 10.6.8.
    Installed 10.6.3 (from the disc  I have) to another 1Tb drive. Transferred accounts, applications, etc, from the Mavericks drive.
    Booted from the fresh 10.6.3 drive. No problems. Could log in to every account (three) and as root. Nice.
    Then updated to 10.6.8 and that's where I hit the brick wall.
    Regardless which account I'm trying to log in to, I'm reverted back to the login screen after a while.
    No error message, nothing like "the password doesn't match" or anything. Just kept in this loop.
    Have repaired the disc using the OS on another disc. Fixed permissions, etc. No go.
    Hints, anyone? Please?

    If the re-install didn't fix the problem, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • Running awesome WM over SSH?

    I run awesome on my MacBook Air, when I'm at home, I tend to hook my system up to an external monitor, keyboard & mouse. I have another monitor that I would also like to implement in my setup.
    My current idea is to get Arch installed on one of my Raspberry Pi's and use it as a sort of thin client, so to speak. So, I'd have the Pi connected to the other monitor, have my MacBook serving up an X session over to the Pi via the network (presumably over SSH) and the Pi displaying that on the screen, which would all seamlessly be controlled with Synergy.
    I know that X forwarding is possible, however, I'd like to know if I can serve up an actual awesome session, so my Pi essentially wouldn't actually be running awesome.
    Is this achievable? If so, how might I go about implementing it? I've done searches, however they seem to just assume that the client has some sort of graphical environment running already and then to just pull application windows over X, whereas I want to use it as a full desktop.
    Many thanks in advance for any advice on this, it'd be greatly appreciated

    Hmmm, okay, I have some queries!
    I use SLiM as my display manager on my MacBook, so will this even be possible?
    Ideally, I'd like to have it setup so I can simply power on my Pi, then have it boot up and initiate the X connection to my MacBook and present an awesome session on the monitor. Are there any means by which this can be achieved?
    There's also the factor that I wish to log in as the standard user account that I use, so I'd already be logged in on my MacBook, then have the Pi initiate a connection also through that account... is that even possible? Perhaps I'm thinking this is like SSH
    Again, many thanks in advance for any help on this!
    **EDIT**
    Would it perhaps be possible/better to simply have the Pi set to autologin to a local user (on the Pi) then have it autostart a minimal X session through .bash_profile, and have something like:
    ssh -X -C user@MacBook
    In the .xinitrc?
    (Of course setup with keypairs so the login is automated)
    And then I'd have to figure out a means of autorunning awesome & synergyc once it's logged in...
    This is just brainstorming of course, but it might work better?
    Last edited by Starfall (2012-08-23 11:16:04)

  • Login Screen, custom shortcut keys possible?

    I'd like to create a keyboard shortcut to "lock the screen" (login screen). I read through the helpfile and it's not clear this is possible.
    I'd like, for example to do Apple-L to get that to work.
    Is this possible?

    QuickEdit, thanks for the help! Sorry not to reply sooner -- was away for a bit and have only had a chance to play around.
    Based on your recommendation, I did some research on QuicKeys and also found another, similar program iKey (http://www.scriptsoftware.com/ikey/). I downloaded trial versions of both, and found iKey easier to manage. Plus it was cheaper ($30 versus 79.95). I was able to assign shortcut keys using modifiers (alt, cmd, ctl) and the keys that Apple won't let you assign via Keyboard preferences (home, end, forward delete, arrows). I even set up some customized menus or more complex actions (automate) with shortcut key triggers (e.g., creating a footer and inserting a file name and path in a word document with two keystrokes; opening itunes finding a radio station and begin streaming it live with two keystrokes). I'm sure that some of this can be done with automater or applescripts, but since I'm new to apple, I'm happy to start with this.
    iKey does have one annoying feature that I discovered -- you can set keyboard shortcuts to operate in different contexts (e.g., Finder front, Safari not running) but you cannot use the same keyboard shortcut to launch different actions in mutually exclusive contexts.
    By the way, I called Apple support about this question before I started playing with either of the programs. The person I talked to made a special call over to the OS X division and confirmed that forward delete cannot be assigned in user-defined keyboard shortcuts -- "yet." No one was clear if this capability might be developed in the future.
    Thanks again for your help!

  • Export Display (Login Screen) - How to use in MAC OSX LION !?!?!

    I'm having problems with exporting my display. I'm trying to connect and enable the connection between twoMAC OS X SERVER LION. and is not working. I want to begin a process that only after the user login is working. How to do this anyway? because no remote program is working except SSH, which I can shutdown, logoff, and reboot. But I can not export the login screen from one machine to another, how do?? need much help ....
    I tried to do as the example below:
    ssh-X remote_host_name 
    1) Warning: No xauth data; using fake authentication data for X11 forwarding.
    MacBook-Pro-for-Isa: ~ $ export DISPLAY = localhost_IP: 0.0
    MacBook-Pro-for-Isa: ~ $ xclock (user)
    Error: Can not open display: localhost_IP: 0.0
    2) MacBook-Pro-for-Isa: ~ $ ssh-Y Sebba@LOCAL_IP
    password:
    Warning: No xauth data; using fake authentication data for X11 forwarding.
    MacBook-Pro-for-Isa: ~ $ export DISPLAY = LOCAL_IP: 0.0
    MacBook-Pro-for-Isa: ~ $ xclock Sebba
    Error: Can not open display: LOCAL_IP: 0.0
    I do not know if I'm using the correct command, but enabled in sshd_config
      ForwardAgent yes
      ForwardX11 yes
    Fire up X11.app (It's located in / Applications/Utilities/X11.app)
    On Mac box: X11 go to preferences and enable "Allow connections from network clients" (Make sure it lookslike below)
    restart X11.app
    Open a terminal and in the X11: xhost +
    ssh to your linux box and do: export DISPLAY = IP_OF_MAC_BOX: 0.0
    true??
    If anyone knows how to use help me, I need examples of how it works if there is more to be set somewhere.
    Regards
    Leonardo Sebba

    windmarble wrote:
    I use to be able to turn off my displays by hitting "lock screen" in keychain access in Snow Leopard.
    Really? Want to show me that button or setting that allows that? AFAIK, System Preferences->Security->General->is where you set that when the machine sleeps or screensaver activates. Accordingly, I'm only aware of a hot corner triggering those two options and the behavior remains the same in Lion, even though the prefPane's name is slightly changed.

  • [SOLVED] Font glyphs work locally, but not over SSH?

    Hello,
    I am trying to get some font glyphs used for status icons (https://aur.archlinux.org/packages/stlarch_font/) to show up in a tmux session over SSH.
    The setup on the local and remote machines are identical and the fonts work fine in tmux on both machines, running locally.
    When attempting to view a tmux session over SSH, however, the glyphs no longer display and instead there is a blank space where they should be.
    Setup:
    URxvt 9.20
    Tmux 1.9a
    .Xresources (full)
    URxvt*termName: rxvt-256color
    URxvt*font: xft:dejavu sans mono for powerline:regular:pixelsize=16,\
    -misc-stlarch-medium-r-normal--10-100-75-75-c-80-iso10646-1
    .tmux.conf (full)
    set -g default-terminal "screen-256color"
    The setup is based off of tutorial: http://crunchbang.org/forums/viewtopic.php?id=20504
    Any ideas?
    Keith
    Last edited by hughitt1 (2014-07-15 01:00:24)

    --edit--
    It appears that the fonts do show up properly on the remote machines when I simply SSH in; it's only when I enable X11 forwards ("-x" flag) that they no longer work...
    **Update 2014/07/14** Problem not related to X11 forwarding. See below for explanation.
    Last edited by hughitt1 (2014-07-15 01:00:02)

  • [Solved] Remote X over ssh not working

    Hello, I'm trying to forward X11 over ssh but it's not working.
    I type
    ssh -X 192.168.1.101
    followed by my password, and I log in just fine.
    I try to launch an X11 application and I get
    $kate
    kate: cannot connect to X server
    SSH is supposed to be forwarding a dummy $DISPLAY to allow remote X.  So I type
    $echo $DISPLAY
    and and get back a empty newline.
    Well how about
    $xinit
    Fatal server error:
    Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    Okay, I'll shut down xserver.
    I do it, and type
    $xinit
    again.  KDE launches on my remote box.  It makes sense, but contradicts many guides I have read which say it should launch on my local machine.
    What am I doing wrong here?  This should be ridiculously simple.
    Last edited by xenobrain (2010-07-06 20:45:16)

    Did you enable X forwarding in your sshd config?
    Did you xhost + (or ssh -Y)?
    Did you crop your DISPLAY variable in a bashrc or similar script run at login?
    Last edited by benob (2010-07-06 19:10:54)

  • Macbook Pro stuck at the login screen

    This morning I dropped my laptop by catching the charging cable the laptop fell on the floor but everything seemed to be normal.
    I then decided to back up straight away so I started time machine. I stupidly started doing some user instensive things on my mac whilst this was going on e.g. playing a game which can sometimes crash. When it did crash I left it for half an hour or so to see if it would bring up force quit or switch out of the crashed programme. This didn't happen so, like i've done in the past, I hard reset holding down the power button.
    When I turned on the mac everything seemed normal I got to the login screen and it offered to startup the computer as it was before I restarted. This was a bit odd as I normally get this message when i've actually logged in. My Backup drive also asked for a password which was also strange for the same reason. I then attempted to login to the computer I typed my password in. It was accepted and the screen went white and then went back to the login screen.
    I repeated this a few times, restarting etc before I tried using disk utility in recovery mode. When verifying the disk no problems were found. Disk permissions found two problems, which unfortunately I can't remember (1 was to do with the library), I then repaired disk permissions. I tried to start again but got the same problem.
    I then stared in safe mode. I'm now meant to be in safe mode but i'm not 100% sure as everything seems the same except everythign is very slow.
    Midbackup my computer crashed so i'm wondering if there are any problems there (especially as it was the first backup I made on my new external HD). I'm now trying to backup in safemode but i'm not sure if that's the best thing to do (as not everything might not copy over and I could potentially ruin the first backup to my new external HD). Can anyone give me any advice on what to do next, tell me where I can test whether i'm in safe mode or not and let me know if I should be backing up in safemode.
    Thanks in advance
    Alex
    Macbook Pro August 2011 13 inch
    500GB HD
    4GB RAM
    2.3 GHz Intel Core i5
    Lion 10.7.3
    UPDATE
    After entering successfully what appeared to be safe mode, I restared the computer and tried logging in normally. I got the white screen (as normal) before I reached the login screen, and after entering my password it eventually did log me in. Everything seems normal but I still want to be sure. My computer seems very slow. I only have 1.25GB/4GB free of RAM and I only have two safari tabs open. I'm backing up now but i'm still a bit concerned.
    Message was edited by: Alexander Richardson

    there is no installation cd, i have hit the command r function and attempted to reinstall from the recovery option stored on the computer. I am connected to the internet. It keeps saying downloading extra components and then once completed just goes b ack to main screen with my old log in informaiton as if nothing has happened. I also attempted to try to do a back up from a restore log and nothing on that as well.

  • How to get JSP to forward a request over SSL?

    I'm new to JSP and servlets, although I've been working with Java for a long time. I'm trying to write a simple user registration and login system to teach myself JSP. I would like to set things up so that the user is able to login securely over https. I'm not sure how to do that, though. There seems to be no place in the relative URLs to indicate that you should be forwarding a request over SSL. I've got sample login page below - would anyone know how to modify it so that it happens securely?
    Also, do I need to install a certificate on my web server?
    index.jsp
    <html>
        <body>
            <h1>Index</h1>
            <a href="login.jsp">Login</a>
        </body>
    </html>login.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <body>
            <h1>Login</h1>
            <jsp:useBean id="userLogin"
                         class="com.kitfox.webrpg.UserLogin"/>
            <jsp:setProperty name="userLogin"
                             property="*"/>
            <%if (userLogin.isValid()) {%>
            <jsp:useBean id="userId"
                         class="com.kitfox.webrpg.UserIdent"
                         scope="session"/>
            <jsp:setProperty name="userId" property="*"/>
            <jsp:forward page="index.jsp"/>
            <%} else {%>
            <form action="login.jsp" method="post">
                <fieldset>
                    <legend>Enter login information</legend>
                    <label for="login">Login</label>
                    <input type="text" name="login" value="${userLogin.login}"/> <br/>
                    <label for="password">Password</label>
                    <input type="password" name="password"/> <br/>
                    <input type="submit" value="submit">
                </fieldset>
            </form>
            <%}%>
        </body>
    </html>

    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secure Login</web-resource-name>
    <url-pattern>/login.jsp</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    This code is used basically for different authentication type . Forward to any jsp under any layer works with <jsp:forward> or else try with request.getRequestDispatcher(" url (can be absolute or accurate path)").forward(request,response);
    Edited by: user8483670 on Mar 13, 2011 9:46 PM

Maybe you are looking for