LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-10-2009, 10:44 PM   #1
emeak
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
Regards
 
Old 08-10-2009, 10:52 PM   #2
mono-factor
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 10:54 PM. Reason: i cant spell T_T
 
Old 08-11-2009, 12:12 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
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
 
  


Reply

Tags
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 34 05-24-2013 10:28 AM
Cannot ssh in to remote machine todd_dsm Linux - Networking 2 06-10-2009 02:38 PM
SSH connection to remote machine... harishkrishnan Linux - Networking 5 11-10-2007 01:35 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM
ssh not connecting to a remote machine. Eux Debian 5 09-22-2004 05:44 AM


All times are GMT -5. The time now is 04:46 PM.

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