Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2009, 09:44 PM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Can't remote ssh into a CRUX linux machine

I'm relatively new to this whole forum thing and not very experienced with Linux. I hope my post is not too verbose.

I have a particular problem at the moment with trying to gain access to a machine which is part of a bigger system and is managed by the Company I work for. The system is designed by others. I/we do support on various windows and linux machines on this system. I hope that helps set the scene.

My ultimate aim to to run a custom X window application. Therefore, I first setup a ssh session, enable X11 port forwarding and start the custom app.

I'm using PuTTY (on windowsXP) from my office to access a remote linux (CRUX) kernel 2.4.XX machine. I login via a user called "fred" (with password fred). But everytime I try and login it rejects my login request. I'm sure I have the right password. Alternatively, I can succesfully login as "root" to the same machine.

If I ssh and login as "root" I can "su - fred" successfully. As "fred' user my X window app won't work (I'm using Cygwin/X for an X-server on Windows). Even if I try and start "xcalc" it doesn't work. I'm told X windows protocol doesn't handle NAT and firewalls very well that's why people use ssh and X11 port forwarding.

Incidently, I can start and X app (e.g like 'xcalc') when I'm logged in remotely as "root" so at least I know my X11 forwarding is setup properly.

I can also telnet to the CRUX machine from my windows machine successfully. However, when I do this no password is requested and I successfully connect to the machine??? I haven't tried running 'xcalc' to see if X will run over a telenet session? I don't think somehow it will!

This is strange to me as the local users (on-site) use the password "fred" to login locally as "fred" user.

I did a bit a search and found a post titled "root password isn working" which talks about a similar problem but with "root" user. There is some settings in sshd_config which did the trick...
Perhaps a tweak in sshd_config is required????

I'm stumped? Please help

Is there any log files I can look at?

Is it something to do with user accounts and passwords?

Does "sshd" require to be restarted in sshd_config is changed?

If so, what's the best way to do that without rebooting the machine?

Suppose another alternative is VNC bu I've had no experience in setting it up?

Hope it all clear. Thanks in advance
Old 08-10-2009, 09:52 PM   #2
LQ Newbie
Registered: Dec 2008
Posts: 17

Rep: Reputation: 0
By the sounds of it you seem more advance in Linux than me (im a windows user) but putty normally uses port 22.
I don’t quite understand, are you able to make a connection to box? And then when you enter the password it says connection refused? (Or am I making some stupid mistake and i wasn’t reading your post correctly.)
Surprisingly i noticed that sometimes debian distro (gay ubuntu) don’t allow you to putty in as root, (well it happened for me).but rather just use the sudo command to do root stuff.

Last edited by mono-factor; 08-10-2009 at 09:54 PM. Reason: i cant spell T_T
Old 08-10-2009, 11:12 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,518

Rep: Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415Reputation: 2415
putty normally uses port 22
Actually it uses whatever port you specify. Of course if you're using ssh it's (normally) 22, 23 for telnet and so on. See /etc/services on /*nix machines


login, remote, security, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
Cannot ssh in to remote machine todd_dsm Linux - Networking 2 06-10-2009 01:38 PM
SSH connection to remote machine... harishkrishnan Linux - Networking 5 11-10-2007 12:35 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
ssh not connecting to a remote machine. Eux Debian 5 09-22-2004 04:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration