Re: Telnet Pbl

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 02/16/04


Date: 16 Feb 2004 21:50:09 GMT

On Mon, 16 Feb 2004 22:08:10 +0100, Peter Höltschi staggered into the
Black Sun and said:
> I have a little logical problem with telnet. I have a windows box
> connected to a internet gateway (redhat 9). Now I would like over
> night to download some big files, like the iso files from other lx
> distros onto my redhat box. To do this I login to the redhat box from
> my windows pc via telnet

Argh. Not only is telnet insecure, it's less convenient than ssh. Set
up your ssh keys properly, and you'll never have to remember a password
to a remote machine again--check the end of this message for a quick way
to do that.

> and start the ftp download this machine. Then I logout from redhat to
> shutdown my windows pc over night. But at the same time the ftp
> process stops too. How can I make the ftp process go on without beeing
> logged in to redhat?

Use nohup (makes a process immune to HUP signals--your processes get a
HUP signal when you log out), scp (Secure CP, encrypted file-transfer
that can be made password-less), and & (puts a process in the
background.) Like so:

(use PuTTY to ssh to your Redhat machine:)
redhat:~$ nohup scp localfile othermachine:/path/to/remote/directory/ &
redhat:~$ exit
(done)

...you can use ncftp instead of scp if you really want, but running an
interactive program like the normal /usr/bin/ftp won't really work well
if you try to use nohup on it.

Passwordless ssh:
0. machine1:~$ if [ -d ~/.ssh ] ; then true ; else mkdir ~/.ssh ; fi ; chmod
700 ~/.ssh
1. machine1:~$ ssh-keygen
2. machine1:~$ scp ~/.ssh/id_dsa.pub machine2:/home/me/machine1key
3. machine1:~$ ssh machine2
4. machine2:~$ if [ -d ~/.ssh ] ; then true ; else mkdir ~/.ssh ; fi ; chmod
700 ~/.ssh
5. machine2:~$ cat ~/machine1key >> ~/.ssh/authorized_keys2

...may look a little confusing, but it should work, and you'll like the
convenience even if you don't care about ssh's additional security. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Remote Access Test (Help Needed)
    ... The telnet test can be performed using either Windows or Linux/Unix ... SSH and remote login are tricky from Windows unless you have ... For SSH: 22 ...
    (uk.comp.os.linux)
  • Re: HELP: how to enable telnet?
    ... >> Just some questions about telnet. ... I just installed FreeBSD. ... Then how can I get SSH working? ... later I want to use Windows XP/2K3. ...
    (freebsd-newbies)
  • Re: ssh
    ... As far as I know no one has ssh (server) for Windows built in. ... IBM has "secure telnet" for wIntegrate for secure logins to Windows ...
    (comp.databases.pick)
  • Re: scroll bar on telnet sessions window
    ... > When I open a telnet session on Windows 98 desktop, ... Use a different telnet program. ... A good one I've used is TeraTerm, which some created a ssh plugin too. ...
    (comp.unix.misc)
  • Telnet Pbl
    ... I have a little logical problem with telnet. ... like the iso files from other lx distros onto my redhat box. ... To do this I login to the redhat box from my windows pc via telnet and start ... But at the same time the ftp process stops too. ...
    (comp.os.linux.misc)