LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh-time out (https://www.linuxquestions.org/questions/linux-networking-3/ssh-time-out-288530/)

master 02-10-2005 10:02 AM

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

master 02-10-2005 10:03 AM

just like to say it was working yesturday

master 07-02-2005 06:16 AM

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

master 07-03-2005 03:35 AM

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

roopunix 07-03-2005 05:03 AM

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

master 07-03-2005 08:25 AM

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

master 07-24-2005 12:34 PM

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

master 07-24-2005 02:17 PM

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

master 07-24-2005 03:58 PM

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

master 08-07-2005 01:43 PM

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

orgcandman 08-12-2005 11:29 AM

vim, emacs, or pico.

I'd suggest spending the time to learn Emacs.


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