You are not logged in.

#1 2007-12-06 22:08:24

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Ssh question

I have made myslef a little server were i intend to run samba shares and torrent (rtorrent maybe).
I've already installed ssh and rtorrent. I acces that server via my desktop computer using ssh.
How can i leave a ssh session open? (so rtorrent wont close everytime i shut my desktop down).

Offline

#2 2007-12-06 22:20:22

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Ssh question

screen
run rtorrent in screen and then press ctrl+a+d to detach and then logout.
when you want to enter in that session
screen -r
to close a session press ctrl+d

Last edited by wonder (2007-12-06 22:21:10)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2007-12-06 22:55:07

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: Ssh question

thx
i'll try that asap

Offline

#4 2007-12-06 23:05:24

nj
Member
Registered: 2007-04-06
Posts: 93

Re: Ssh question

Also check out dtach, which is a very small program which emulates the detach feature of screen. To use it, create an alias like:

alias runtorrent='dtach -A ~/.dtach.torrent rtorrent'

Then when you run the command runtorrent, rtorrent will be started if it is not running. If it is running, then you'll start right where you left off. Use Ctrl-\ to detach the screen.

Offline

#5 2007-12-08 11:46:14

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Ssh question

you may find this wiki article useful
http://wiki.archlinux.org/index.php/All … ter_logoff

Offline

Board footer

Powered by FluxBB