The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh session hangs chaandana UNIX for Advanced & Expert Users 3 05-02-2008 11:27 AM
log session mm00123 Linux 15 03-24-2008 03:27 AM
display while in ftp session vivek_damodaran Shell Programming and Scripting 2 11-06-2007 01:45 PM
Telnet Session to AIX bluebee UNIX for Dummies Questions & Answers 1 08-07-2007 03:19 PM
sqlplus session being able to see unix variables session within a script 435 Gavea Shell Programming and Scripting 2 07-03-2006 10:11 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2003
noamkrief noamkrief is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 4
is it possible to ssh within an ssh session?

i have a home network in which one computer can be sshed into from the internet. inside this ssh session, i cannot ssh into another computer on the internal network (LAN)
i get the following error:
pseudo-terminal will not be alocated because stdin is not a terminal


any suggestions would be appreciated
thanks
Noam
  #2 (permalink)  
Old 11-14-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
Try using -t on the ssh call

-t Tty; allocate a tty even if command is given.

Cheers,

Keith

Last edited by kduffin; 11-17-2003 at 10:41 PM..
  #3 (permalink)  
Old 11-14-2003
noamkrief noamkrief is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 4
that didn't work..
  #4 (permalink)  
Old 11-14-2003
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Suggest you look at your firewall rules - see if it's allowed to ssh from one system to the other.

OR

Check the settings in the two systems by getting on console of one server and ssh to the other - then from the other to the first. Test what will work and what won't.

Post the OS of the two systems and more info could be given (such as what files to look at such as /etc/hosts.allow /etc/hosts.deny)
  #5 (permalink)  
Old 11-14-2003
noamkrief noamkrief is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 4
RTM, thanks for the response...
When i SSH into the first computer, it works fine.
within the ssh session of the first computer i try to ssh computer2 and i get that error.

But i just found out it work by one command...

ssh -t firstcomputer ssh secondcomputer

or even


ssh - firstcomputer sftp secondcomputer

My setup is like this:
first computer is connected to the internet directry.
Second computer is on the internal LAN.

That's why i'm trying to figure out a way to ssh or sftp into the second computer on the LAN. is there an easier way?
thanks
Noam
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0