Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with scp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
boudie
n00b
n00b


Joined: 01 Feb 2004
Posts: 74
Location: nova scotia, canada

PostPosted: Sun Aug 22, 2004 2:45 am    Post subject: Problem with scp Reply with quote

Have ssh working on my local network, but when I try to
scp files from one machine to the other, it asks for the
password, the file name and transfer speed comes up,
as all zeroes, the file shows up in the desired directory,
but it is always empty.
If it can't write, shouldn't it say so? I've uncommented
port 22 in my /etc/ssh/ssh_config, is there something
else I could have missed?
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Sun Aug 22, 2004 2:51 am    Post subject: Reply with quote

Dunno if this is your problem, but I had problems with my shell login producing output and stopping scp from working. I tweaked my .$HOME/.tcshrc to check if the login is on a tty or not like so:
Code:

    ( /usr/bin/tty ) > /dev/null
    if ( $status == 0 ) then
      # interactive output like "echo" or "fortune" goes here
    endif
    # non-interactive stuff like "alias" or "setenv" can safely go here

HTH :D
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
boudie
n00b
n00b


Joined: 01 Feb 2004
Posts: 74
Location: nova scotia, canada

PostPosted: Sun Aug 22, 2004 4:13 am    Post subject: Reply with quote

How would that translate to bash?
Back to top
View user's profile Send private message
penguinland
n00b
n00b


Joined: 26 Sep 2004
Posts: 50
Location: California

PostPosted: Fri Jan 21, 2005 11:01 pm    Post subject: Reply with quote

This tip is exactly what you need. I had the same question, and this worked perfectly.

http://gentoo-wiki.com/TIP_Fortune

In your .bashrc file, put the following:

Quote:
if [ $TERM != "dumb" ]; then
fortune
fi

_________________
Flying is the art of throwing yourself at the ground and missing.

- Douglas Adams
Back to top
View user's profile Send private message
Cocker68
Apprentice
Apprentice


Joined: 16 Jan 2003
Posts: 227
Location: Germany

PostPosted: Mon Jan 31, 2005 7:23 pm    Post subject: Reply with quote

My approach to the problem is:
Code:
[ "$PS1" ] && echo "sourcing ${HOME}/.bashrc"
(output to terminal only if $PS1 is set)

- Cocker :wq
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum