View previous topic :: View next topic |
Author |
Message |
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Thu May 20, 2004 10:18 pm Post subject: erm, ssh to my machine, but i cant remember ma pw? |
|
|
right
i have a system
its a gentoo 2004.0 system
i'm tryna ssh into it
and/or X -query %ip% into it..
but it want x - query
and it says ma ssh password is wrong..
but i know its right!!!
there is no way i can get a monitor connected
i can get a k/b connected.
if i booted the cd (blindly)
could i "carefully" type in /etc/init.d/ssh start and
it would start
then i'd ssh init and install from scratch..
is that possible? _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
infamousmrsatan Apprentice
Joined: 08 Jan 2004 Posts: 201 Location: California
|
Posted: Thu May 20, 2004 10:29 pm Post subject: Re: erm, ssh to my machine, but i cant remember ma pw? |
|
|
mahir wrote: |
if i booted the cd (blindly)
could i "carefully" type in /etc/init.d/ssh start and
it would start
then i'd ssh init and install from scratch..
is that possible? |
In theory, yes that is possible.... but. Might be difficult to pull off.
Why can't you hook up a monitor?
You'd be better off typing /etc/init.d/sshd restart especially if you think its already started.
Your password for ssh, by default, should be the same as your user password. (or root, but its more secure to log in as a user and then su to root)
How did you install if you cannot hook up a monitor or ssh?
Justin _________________ Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol! |
|
Back to top |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Fri May 21, 2004 12:05 am Post subject: |
|
|
try logging in as a normal user, then su
maybe you are deny-ing root to login (removed pts/0 or something to /etc/securetty) _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
|
ian! Bodhisattva
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Fri May 21, 2004 12:09 pm Post subject: |
|
|
Moved from 'IG' to 'N&S'. _________________ "To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins |
|
Back to top |
|
|
LeTene Guru
Joined: 02 Mar 2004 Posts: 348 Location: Ah'll glass ye!
|
Posted: Fri May 21, 2004 3:11 pm Post subject: Re: erm, ssh to my machine, but i cant remember ma pw? |
|
|
mahir wrote: |
if i booted the cd (blindly)
could i "carefully" type in /etc/init.d/ssh start and
it would start
then i'd ssh init and install from scratch..
|
Nearly right mate - try this:
- Boot off LiveCD, and give it a few minutes to be sure all is started up OK
- Type in passwd and press Enter, then very carefully type in a new password, press Enter, re-type password, press Enter again. This is a temporary, LiveCD-only password which will "go away" when you reboot
- Now type in /etc/init.d/sshd start and press Enter
You will now be able to connect to your machine via SSH - but wait! You don't have to re-install! You can re-set your main root password from an SSH login to the LiveCD!
Do this:
- SSH to the LiveCD session, and log in
- Mount your root hard disk e.g. mount /dev/hda3 /mnt/gentoo
- chroot into your disk e.g. chroot /mnt/gentoo
- Do an env-update && source /etc/profile
- type in passwd and then enter your new root password
- exit the chroot, and umount /mnt/gentoo
- reboot, remembering to remove the LiveCD
After the system reboots, you should now be able to SSH into your system using the new root password. _________________ Docs, Tips & Tricks at the Gentoo Wiki page. |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Fri May 21, 2004 11:53 pm Post subject: ahhhhhhhh |
|
|
THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sat May 22, 2004 12:33 am Post subject: mmm |
|
|
dude!
or dudet's out there
i have gnome installed on the puta too
i can now ssh into but
but i cant X -query -%ip into it..
it just hangs..
and i cant log on via xdcmp via the gdmXnestchooser thing
any ideas?
anything that HAS TO BE enabled for that 2 work? _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Sat May 22, 2004 4:18 pm Post subject: |
|
|
I think X server in Gentoo denies connections from outside by default. Try to run gdmsetup as root and enable network logins. _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sat May 22, 2004 4:23 pm Post subject: mm |
|
|
but i cant?
cos gdmsetup is a GUI program
and i'm runnin ssh (text only) ...
or is it?
is ssh only text? there is something about allow X connections blabla in ssh --help. _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
infamousmrsatan Apprentice
Joined: 08 Jan 2004 Posts: 201 Location: California
|
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sun May 23, 2004 3:05 am Post subject: |
|
|
this is waht i get...
Code: | jt_server xdm # xhost +
xhost: unable to open display ""
|
no luck
someone help
if i could connect a monitor i could do it
i'd install gnome then do it from there
but i dont have that option (the monitor)
what config files need what lines inthem to make this work?
any ideas?
help plz.
which config files must i edit? _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun May 23, 2004 6:04 am Post subject: |
|
|
Try and seee what happens. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
infamousmrsatan Apprentice
Joined: 08 Jan 2004 Posts: 201 Location: California
|
Posted: Sun May 23, 2004 6:15 am Post subject: |
|
|
mm ... if "xhost +" didn't work, "xhost +localhost" wont either. count on it.
I'm not sure what you need to do... I'm going to try thinking about it some more. If anyone does know, feel free to speak up. I'm not too knowledgable with regard to the workings of X
Justin _________________ Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol! |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sun May 23, 2004 10:45 am Post subject: |
|
|
Code: | root@jt_server X11 # ./xhost +
./xhost: unable to open display ""
root@jt_server X11 # ./xhost +localhost
./xhost: unable to operoot@jt_server X11 # ./xhost +
./xhost: unable to open display ""
root@jt_server X11 # ./xhost +localhost
./xhost: unable to open display ""
n display ""
|
this is what i get.
i had to cd into the /usr/bin/X11 directory ... _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4983 Location: Gothenburg, Sweden
|
Posted: Sun May 23, 2004 10:59 am Post subject: |
|
|
Have you enabled X forwarding in /etc/ssh/sshd_config? _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sun May 23, 2004 11:07 am Post subject: mm |
|
|
i have asked about this b4
but no one responded.
what is that for?!
must i
and where do i do that?
ont he server or client ??
and
must i have an ssh session when trying to connect?
i am runnin on ma gentoo laptop and i cant even access it from here..
i get the same error
i do Xnest -query <ip> and it just hangs.
just hangs
and yes
more hanging.
i am installing gnome 2.6 now. _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4983 Location: Gothenburg, Sweden
|
Posted: Sun May 23, 2004 11:17 am Post subject: |
|
|
You have to enable that on the server, otherwise it will refuse to forward any X-related stuff to your client. Furthermore, on your client you also have to enable X11 forwarding
in /etc/ssh/ssh_config or in $HOME/.ssh/config for per user setting, or use the -X command line option. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sun May 23, 2004 11:54 am Post subject: |
|
|
this is what i get from within cygwin.
Code: | Mahir@jt ~
$ X -query 192.168.1.50
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-9
Contact: cygwin-xfree@cygwin.com
XWin was started with the following command line:
X -query 192.168.1.50
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 00000007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000809" (00000809)
(--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
Rules = "xorg" Model = "pc105" Layout = "gb" Variant = "(null)" Options = "(null
)"
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li
st!
winPointerWarpCursor - Discarding first warp: 509 338
|
_________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
|