LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2005, 02:33 PM   #1
daedalusonlinux
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29

Rep: Reputation: 15
SSH help


Ok, so I am taking a C++ class at my college and we connect to the servers through SSH to do the labs. In the lab we can open up on editor in another window by using "&". But when I try to do the same thing at home, the command doesn't open the editor in another window, it doesn't even start the program, it just display a number and takes me back to the command prompt. I think the reason for this is that in class we had to enable "tunneling", but I can't figure out how to do this on my home computer. As a note, in class we use X-win 32 under windows 2000 to connect to the servers. I'm using SuSE 10.0 at home, and TELNETTing to connect to the schools servers. Thanks for any help.
 
Old 11-17-2005, 04:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You probably need to use the -X flag when you first open the ssh connection. That allows X forwarding so graphical programs will be displayed on your local monitor.
 
Old 11-17-2005, 04:50 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
or "-Y" on newer versions of SSH. Also, your questions doesn't make it clear if you're using SSH or Telnet.

Last edited by spooon; 11-17-2005 at 04:52 PM.
 
Old 11-17-2005, 08:31 PM   #4
daedalusonlinux
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29

Original Poster
Rep: Reputation: 15
What I am doing is using a telnet comand to login to a non ssh server and then once login in to that server using ssh to login to the ssh secure server. How exactly do I use the flags. I mean would I just type "ssh servername -x" or is it done in someother way? Thanks for the help.
 
Old 11-18-2005, 06:57 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by daedalusonlinux
What I am doing is using a telnet comand to login to a non ssh server and then once login in to that server using ssh to login to the ssh secure server. How exactly do I use the flags. I mean would I just type "ssh servername -x" or is it done in someother way? Thanks for the help.
If I understand you correctly, you're not going to be able to make this work. Please correct me if I'm wrong about this diagram:

You -> Telnet server -> SSH server


The problem is the telnet connection between you and the SSH server. As far as I know, telnet isn't capable of performing X forwarding, so it doesn't matter how you connect to the SSH server because telnet will get in the way. What you really want to do is log in directly to the SSH server. Can I ask why you aren't doing this?

By the way the flag is -X, not -x. other than that you have the command correct.
 
Old 11-19-2005, 04:00 AM   #6
daedalusonlinux
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29

Original Poster
Rep: Reputation: 15
OK, so I have tried to just connect to the isengard server with the ssh command but nothing happens, it doesn't ask for my password, all it does is the cursor moves down a line and blinks. I've tried using kssh but I'm having the same problem there as well. Could it be a firewall issue, is there a setting that I must enable in order to use ssh? Thanks for the help.
 
Old 11-19-2005, 08:53 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
It actually could be any number of things here. Probably the best thing to do is run ssh with the -v option, which causes a lot more information to be logged. To do this you would need to run ssh from the command line, but that isn't such a bad thing. I'm guessing kssh is hiding useful information. Have a look in your syslog and messages file and see if ssh has complained at all. Without some additional clues, we're really going to be shooting in the dark.
 
Old 11-19-2005, 04:04 PM   #8
daedalusonlinux
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29

Original Poster
Rep: Reputation: 15
Where are my syslog and message files? I'm pretty new to linux and I'm still figuring out the file system.
 
Old 11-19-2005, 04:24 PM   #9
fraz
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 149

Rep: Reputation: 15
if you ever need to find a specific file you can type
locate <filename>
logfiles live in /var/log
anyhow with the ssh thing the best solution would be to connect directly to the machine on which you need to run code. I don't know how things work at your college but you might be able to use virtual private networking to effectively appear on the colleges network thus bypassing the (suspected) firewall issue. then you should be able to ssh easily using -Y to forward X. Of course this all depends on whether your college provides this service.

edit: my assumption is that the college has a firewall which is preventing you access

Last edited by fraz; 11-19-2005 at 04:29 PM.
 
  


Reply



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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration