Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-17-2005, 02:33 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29
Rep:
|
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.
|
|
|
11-17-2005, 04:02 PM
|
#2
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-17-2005, 04:50 PM
|
#3
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
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.
|
|
|
11-17-2005, 08:31 PM
|
#4
|
LQ Newbie
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
11-18-2005, 06:57 AM
|
#5
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-19-2005, 04:00 AM
|
#6
|
LQ Newbie
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
11-19-2005, 08:53 AM
|
#7
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-19-2005, 04:04 PM
|
#8
|
LQ Newbie
Registered: Jan 2005
Distribution: Ubuntu "Breezy Badger" 5.10
Posts: 29
Original Poster
Rep:
|
Where are my syslog and message files? I'm pretty new to linux and I'm still figuring out the file system.
|
|
|
11-19-2005, 04:24 PM
|
#9
|
Member
Registered: Nov 2004
Location: Edinburgh, Scotland
Distribution: Ubuntu
Posts: 149
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|