LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-10-2005, 10:02 AM   #1
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Rep: Reputation: 30
ssh-time out


hello can any body tell me why my connection keeps timing out when i try to ssh to my other com i can ping it no problem
 
Old 02-10-2005, 10:03 AM   #2
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
just like to say it was working yesturday
 
Old 07-02-2005, 06:16 AM   #3
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
hello i have another ssh question,
?when i ssh into another computer why can i not copy the directory.
i have a directory called "mp3" and i want to be able to copy the contents of this dir to my other computer,im using this command "cp mp3 nigels"
now "mp3"is the direcory i want to copy and "nigels" is the directory i want to copy to is there any reason i can not do this please.
THanks nige
 
Old 07-03-2005, 03:35 AM   #4
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
hello i kind of found out how to copy a file from 1 computer to another using this command."scp /home/masternige/mp3 192.168.1.100:/tmp"
but i am getting this error message.
"root@localhost:/home/masternige# scp /home/masternige/mp3 192.168.1.100:/tmp
root@192.168.1.100's password:
/home/masternige/mp3: not a regular file
root@localhost:/home/masternige#
can any body tell me why this is an iregular file please the directory im trying to copy is full of mp3 songs
thanks nige
 
Old 07-03-2005, 05:03 AM   #5
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
ok let's say the local box has a ip 192.168.0.1 and the remote box has 12.168.0.2

you wanna copy a file named f1 which in /root of your local box and you are logged in as root user
#scp /root/f1 192.168.0.2:/root
*give the root password of the remote machine*
0%****************************100%

*if you were coping a directory then
#scp -r /root/dir_name 192.168.0.2:/root
 
Old 07-03-2005, 08:25 AM   #6
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
Thanks for your reply the commmand its self was good the problem was it kept telling me it was not a regular file there for it could not copy it any way what i did was turn it into a ".tar" then it allowed me to copy it thanks very much
 
Old 07-24-2005, 12:34 PM   #7
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
Hello i was hoping someone would help me out with yet another problem please i am wanting to use x with ssh so this is what i am doing.
[master29@master master29]$ xhost
access control enabled, only authorized clients can connect
INET:aries
[master29@master master29]$ xhost +aries
aries being added to access control list
[master29@master master29]$ ssh -x masternige@aries
masternige@aries's password:
Last login: Sun Jul 24 18:28:49 2005 from master.home
Linux 2.4.26.
masternige@localhost:~$ echo $Display

masternige@localhost:~$ export Display=aries
masternige@localhost:~$ xterm &
[1] 18777
masternige@localhost:~$ xterm Xt error: Can't open display:
masternige@localhost:~$

as you can see the name of the computer i want to access is called aries i can connect no problem but it is giving me an error message on x .
my friend showed me how to do this but he had to leave before i could practice with him here.so now i am only half way there any help would be much appreciated.
Thanks Nige
 
Old 07-24-2005, 02:17 PM   #8
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
ok i have done a bit more searching on the net it would seem i am missing this" :0.0" but where does it go.I know i am close i tried adding it here like this .
[master29@master master29]$ xhost +aries
aries being added to access control list
[master29@master master29]$ ssh -X masternige@aries:0.0
ssh: aries:0.0: Name or service not known
[master29@master master29]$ xhost +aries
aries being added to access control list
[master29@master master29]$ ssh -X masternige@aries
masternige@aries's password:
Last login: Sun Jul 24 19:48:33 2005 from master.home
Linux 2.4.26.
masternige@localhost:~$ echo $Display:0.0
:0.0
masternige@localhost:~$ export Display=aries
masternige@localhost:~$ xterm &
[1] 18860
masternige@localhost:~$ xterm Xt error: Can't open display:
but that did not work so i am assuming i need to put " :0.0" some where else so ill keep trying for know
 
Old 07-24-2005, 03:58 PM   #9
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
ok iv done it this is the answer.
[master29@master master29]$ xhost +aries
aries being added to access control list
[master29@master master29]$ ssh -X masternige@aries
masternige@aries's password:
Last login: Sun Jul 24 21:46:59 2005 from master.home
Linux 2.4.26.
masternige@localhost:~$ echo $ DISPLAY
$ DISPLAY
masternige@localhost:~$ export DISPLAY=192.168.1.100
masternige@localhost:~$ export DISPLAY=master:0
masternige@localhost:~$ xterm &
[1] 19114
masternige@localhost:~$

just in case any body comes across the same problem
thanks nige
 
Old 08-07-2005, 01:43 PM   #10
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/XP/Win7
Posts: 677

Original Poster
Rep: Reputation: 30
i was wandering if some one could tell me how to edit /etc using ssh so lets say i have ssh in to whatever machine i "cd to /etc" now how do i edit something from here please
 
Old 08-12-2005, 11:29 AM   #11
orgcandman
Member
 
Registered: May 2002
Location: dracut MA
Distribution: Ubuntu; PNE-LE; LFS (no book)
Posts: 594

Rep: Reputation: 102Reputation: 102
vim, emacs, or pico.

I'd suggest spending the time to learn Emacs.
 
  


Reply


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
disable ssh-timout after some idle time papa_anarchia Linux - General 1 11-25-2005 02:38 PM
SSH takes a long time (2 minutes) to connect jinju Linux - Newbie 5 07-31-2004 10:37 PM
no signal when starting xorg for the 1st time (but the second time works fine) bungalowbill Linux - Software 0 06-04-2004 09:56 AM
ssh-keygen run time fatman Linux - Software 5 01-11-2004 12:34 PM


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

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