• Automating file transfers using FTP (or similar)

    From Avon@21:1/101 to All on Saturday, February 13, 2021 19:20:29
    Not sure if I should post this here or in Gen... but I'm opting to post here
    as it's fsxNet admin related.

    I'm stuck, on windows I had a batch file that called WinSCP and passed some commands to a .tmp file that was in turn used by WinSCP. It essentially
    logged in as a user and supplied password then does a 'put %1' so that the
    main batch file can be called with an additional file that you wanted to FTP
    to the webhost.

    The bones of the old script looked like this (minus some key login info)

    @echo off
    echo open ftp://[email protected]:[email protected] -hostkey="xxx" >> script.tmp
    echo put %1 >> script.tmp
    echo exit >> script.tmp
    winscp /ini=nul /script=script.tmp
    del script.tmp


    How can I setup something that allows me to run an automated file transfer
    from my Linux system to my webhost? I'm trying to set things up so that
    copies of the nodelist etc. are sent there when updated on this new box.

    I started to look at scp and sftp but on Linux I am lost.

    Any advice appreciated.

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From deon@21:2/116 to Avon on Saturday, February 13, 2021 17:35:08
    Re: Automating file transfers using FTP (or similar)
    By: Avon to All on Sat Feb 13 2021 07:20 pm

    How can I setup something that allows me to run an automated file transfer from my Linux system to my webhost? I'm trying to set things up so that copies of the nodelist etc. are sent there when updated on this new box.

    I would just use binkd and a filebox.

    Give that webhost a FTN address (could be anything), setup binkd to answer with that address and your linux host when it sees anything in the outbox for it, just pushes it over.

    You could even then have a script (on the webhost), that did something with it, if it needed to.

    And if you wanted to, you could probably wrap it around a binkps session (if you wanted some security), a firewall rule that only accepts connects from your linux host - or something like zerotier that gives you a "secure virtual lan" between the 2 hosts.

    ...δεσ∩

    ... Send in competition answers with your name, age and how old you are.
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Avon@21:1/101 to deon on Saturday, February 13, 2021 19:54:26
    On 13 Feb 2021 at 05:35p, deon pondered and said...

    I would just use binkd and a filebox.

    I can't see how I can install and run these on my webhost... I only have
    cPanel access and not any Linux command line access to their server.

    I think I need to find a way to run a scripted and automated login process to pass via SCP or SFTP the files I want to my commerical webhost provider... I think... :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Oli@21:3/102 to Avon on Saturday, February 13, 2021 09:21:48
    Avon wrote (2021-02-13):

    On 13 Feb 2021 at 05:35p, deon pondered and said...

    I would just use binkd and a filebox.

    I can't see how I can install and run these on my webhost... I only have cPanel access and not any Linux command line access to their server.

    I think I need to find a way to run a scripted and automated login
    process to pass via SCP or SFTP the files I want to my commerical webhost provider... I think... :)

    If you have some (restricted) ssh access you can use scp, sftp and maybe rsync.

    scp filename username@webhost:
    or
    scp filename username@webhost:directory

    you can use "sftp -b <batchfile>" for executing several commands on the sftp server. See man sftp

    If you want to run the commands non-interactively (without entering the password) you have to use authentication with a public/private key. genrate a ssh key on the local machine and put the public key to the server. Your webhosting provider should have instructions how to do this. Default is ~/.ssh/authorized_keys. See man ssh-keygen.

    maybe try sftp username@webhost, if that doesn't work you might have to use ftp (not sure why any provider still allows ftp).

    ---
    * Origin: . (21:3/102)
  • From Al@21:4/106.1 to Avon on Saturday, February 13, 2021 00:25:35
    Re: Automating file transfers using FTP (or similar)
    By: Avon to All on Sat Feb 13 2021 07:20 pm

    I started to look at scp and sftp but on Linux I am lost.

    I think scp is what you want if you have an ssh login to the host.

    I find the scp syntax is not intuitive but I have done this with a scp before. If I can help, let me know.

    Ttyl :-),
    Al

    ... Misspelled? Impossible. My modem is error correcting.
    --- SBBSecho 3.12-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From deon@21:2/116 to Avon on Saturday, February 13, 2021 21:19:31
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to deon on Sat Feb 13 2021 07:54 pm

    I can't see how I can install and run these on my webhost... I only have cPanel access and not any Linux command line access to their server.

    Ahh, OK - different strategy.

    I would use scp. With ssh keys, you dont need to worry about authentication, so you can just "scp foo host:bar". I'm sure you could do something similar with sftp.

    ...δεσ∩

    ... Wait! You have not been prepared! Mr. Atoz, stardate 3113.2.
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From bcw142@21:1/145 to Avon on Saturday, February 13, 2021 06:28:11
    I'm stuck, on windows I had a batch file that called WinSCP and passed some commands to a .tmp file that was in turn used by WinSCP. It essentially logged in as a user and supplied password then does a 'put
    %1' so that the main batch file can be called with an additional file
    that you wanted to FTP to the webhost.

    Deon's answer is one, myself I generally use rsync for such things. Linux has ssh for easy setup and it makes a way to transfer files in to a system or between systems. I move things from my test setups to and from the main BBS using that rather than just ftp (which can be made to work as well). It will generally ask for a password in process, but on the local system using the login owner you wouldn't need one (works like cp or copy which you could also use), just from system to system. Once ssh is setup you can also use other tools like filezilla. You can securely transfer files anywhere in the world with the right permissions.

    --- Mystic BBS v1.12 A47 2021/02/01 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Avon@21:1/101 to Oli on Sunday, February 14, 2021 09:11:50

    On 13 Feb 2021 at 09:21a, Oli pondered and said...

    If you want to run the commands non-interactively (without entering the password) you have to use authentication with a public/private key. genrate a ssh key on the local machine and put the public key to the server. Your webhosting provider should have instructions how to do
    this. Default is ~/.ssh/authorized_keys. See man ssh-keygen.

    I generated a key locally, copied the public key and enabled it on my webhost now am stuck trying to get things to work using scp or (as yet) untested sftp etc..

    It's so frustrating and demoralizing trying to get something that should be simple to work :(

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Oli@21:3/102 to Avon on Saturday, February 13, 2021 21:56:14
    Avon wrote (2021-02-14):

    On 13 Feb 2021 at 09:21a, Oli pondered and said...

    If you want to run the commands non-interactively (without entering
    the password) you have to use authentication with a public/private
    key. genrate a ssh key on the local machine and put the public key
    to the server. Your webhosting provider should have instructions
    how to do this. Default is ~/.ssh/authorized_keys. See man
    ssh-keygen.

    I generated a key locally, copied the public key and enabled it on my webhost now am stuck trying to get things to work using scp or (as yet) untested sftp etc..

    could you give us more details. error messages or an example where you are stuck.

    It's so frustrating and demoralizing trying to get something that should
    be simple to work :(

    yes, it is...

    ---
    * Origin: . (21:3/102)
  • From Avon@21:1/101 to Oli on Sunday, February 14, 2021 13:12:06
    On 13 Feb 2021 at 09:56p, Oli pondered and said...

    could you give us more details. error messages or an example where you
    are stuck.

    Thanks, sorry I'm a tad grumpy... and it's in no way directed at you.

    I'm trying to understand how to call scp or sftp correctly from the command line in a way that I can put it in a .sh script and know each time I run it,
    it will copy either a hard coded filename from local dir to web server... or
    if it's written another way, when I call the script I pass a file name and
    the .sh will send the file to the web server and replace the old one there
    with the one I send it.

    So for SCP I see

    scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit]
    [-o ssh_option] [-P port] [-S program] source ... target


    and I try something like

    scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]

    then the command seems to be accepted and I get a new linux command prompt.

    I have no idea if the file has been sent or where it went.

    I'm kinda graping at straws as I don't really know how to apply this ssh
    stuff to what I understand from before which was a ftp style login... but
    using that was using winscp to do the copying and seemed to be preceded by a series of ftp style commands called as a script by winscp.

    It was so long ago that I've mostly forgotten all of that setup :(

    So I've created a rsa style key and uploaded it to cpanel and enabled it but using it from my command line, yet along getting some kind of automated copy process working eludes me..

    I'm just feeling frustrated by something that should be easy and yet I can't seem to nail it :( Kinda tired and also been doing a lot of looking after my wife these last few weeks so that's no helping either.

    I'll figure it out in the end and then think ahhh

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From deon@21:2/116 to Avon on Sunday, February 14, 2021 11:15:28
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to Oli on Sun Feb 14 2021 01:12 pm

    scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]

    The syntax for the destination is user@host:/path

    If what you typed is above, then you effectively just "copied" the file test.txt to [email protected] (on the local system).

    ...δεσ∩

    ... Birth is the beginning of death.
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Avon@21:1/101 to deon on Sunday, February 14, 2021 13:24:04
    On 14 Feb 2021 at 11:15a, deon pondered and said...

    The syntax for the destination is user@host:/path

    If what you typed is above, then you effectively just "copied" the file test.txt to [email protected] (on the local system).

    Thanks I tried adding host:/ then entered a password and never got a further reply... I had to ctrl break out of the command and now when I try to call it it also just goes back to a flashing cursor...

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to deon on Sunday, February 14, 2021 13:24:59
    On 14 Feb 2021 at 11:15a, deon pondered and said...

    If what you typed is above, then you effectively just "copied" the file test.txt to [email protected] (on the local system).

    ssh: connect to host bbs.nz port 22: Connection timed out
    lost connection


    I guess that's progress :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to Deon on Sunday, February 14, 2021 13:27:23
    On 14 Feb 2021 at 01:24p, Avon pondered and said...

    ssh: connect to host bbs.nz port 22: Connection timed out
    lost connection

    when I tried the command again it just goes blank... no prompts or anything..

    then after some time I get the timeout message again...

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From deon@21:2/116 to Avon on Sunday, February 14, 2021 11:27:53
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to deon on Sun Feb 14 2021 01:24 pm

    ssh: connect to host bbs.nz port 22: Connection timed out
    lost connection

    OK, so either the SSH is living on a specific port (likely), or its firewalled out (highly possible too).

    ...δεσ∩

    ... What's the speed of dark?
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From deon@21:2/116 to Avon on Sunday, February 14, 2021 11:30:32
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to Deon on Sun Feb 14 2021 01:27 pm

    when I tried the command again it just goes blank... no prompts or anything..
    then after some time I get the timeout message again...

    Yup, indiciating its firewalled out.

    ...δεσ∩

    ... Modesty died when clothes were born.
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From bcw142@21:1/145 to Avon on Saturday, February 13, 2021 20:20:50
    Sounds like your trying to do things the hard way, To transfer between systems or backup stuff I use rsync. You were using scp which uses ssh as well.

    #!/bin/bash
    rsync -aPrvz "$1" [email protected]:/mystic

    as a bash script to copy argument $1 file to /mystic user pi at 10.0.0.5
    If you look it up there are ways to handle passwords like RSYNC_PASSWORD variable or --password-file and such.

    --- Mystic BBS v1.12 A47 2021/02/01 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Avon@21:1/101 to deon on Sunday, February 14, 2021 15:15:39
    On 14 Feb 2021 at 11:30a, deon pondered and said...

    Yup, indiciating its firewalled out.

    On there end or do you think I need to run something on my end to open a port
    / check it's open?

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to bcw142 on Sunday, February 14, 2021 15:16:51
    On 13 Feb 2021 at 08:20p, bcw142 pondered and said...

    Sounds like your trying to do things the hard way, To transfer between systems or backup stuff I use rsync. You were using scp which uses ssh
    as well.

    I may well be :)

    I've not used it (yet) but was hoping to get running what I had used in the past under windows which seemed to be a combo of ftp and scp..

    If I start on rsynch now I may likely get even more muddled :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to deon on Sunday, February 14, 2021 15:31:40
    On 14 Feb 2021 at 11:30a, deon pondered and said...

    Yup, indiciating its firewalled out.

    Have approached my webhost about enabling ssh access.... I may need to ask first says the only help files...

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From deon@21:2/116 to Avon on Sunday, February 14, 2021 17:49:52
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to deon on Sun Feb 14 2021 03:15 pm

    On there end or do you think I need to run something on my end to open a port
    / check it's open?

    On there end.

    Sometimes webhosts run SSH on a different port, or you may need to open it in cpanel.

    If they offer SFTP, then it'll be the same port as SFTP.

    ...δεσ∩

    ... Two most common elements in the universe: Hydrogen & Stupidity.
    --- SBBSecho 3.12-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Oli@21:3/102 to Avon on Sunday, February 14, 2021 08:51:33
    Avon wrote (2021-02-14):

    On 14 Feb 2021 at 11:30a, deon pondered and said...

    Yup, indiciating its firewalled out.

    Have approached my webhost about enabling ssh access.... I may need to ask first says the only help files...

    Meanwhile you can use ftp.

    I don't understand why webhost still offer (unencrypted) ftp-only access. Even if they don't want to give you shell access. There are restricted shells for ssh and sftp servers available.

    ---
    * Origin: . (21:3/102)
  • From Avon@21:1/101 to Oli on Sunday, February 14, 2021 20:58:25
    On 14 Feb 2021 at 08:51a, Oli pondered and said...

    Meanwhile you can use ftp.

    I don't understand why webhost still offer (unencrypted) ftp-only
    access. Even if they don't want to give you shell access. There are restricted shells for ssh and sftp servers available.

    I have spent the day on and off trying to get access and still can't. It's jolly frustrating... partly because I am not sure I am even doing it right :)

    But I try and pass things like

    Permission denied, please try again.
    [email protected]'s password:
    avon@orac:~$ sftp -i /home/avon/.ssh/id_rsa sftp://[email protected] [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    avon@orac:~$ sftp [email protected]
    [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
    Connection closed.
    Connection closed
    avon@orac:~$ sftp -i /home/avon/.ssh/id_rsa [email protected]
    [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    Permission denied, please try again.
    [email protected]'s password:
    [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
    Connection closed.
    Connection closed


    I am slowly loosing the will... :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Oli@21:3/102 to Avon on Sunday, February 14, 2021 08:58:19
    Avon wrote (2021-02-14):

    On 14 Feb 2021 at 11:30a, deon pondered and said...

    Yup, indiciating its firewalled out.

    Have approached my webhost about enabling ssh access.... I may need to ask first says the only help files...

    btw, midnight commander supports ftp (and sftp)

    ---
    * Origin: . (21:3/102)
  • From Oli@21:3/102 to Avon on Sunday, February 14, 2021 09:35:20
    Avon wrote (2021-02-14):

    On 14 Feb 2021 at 08:51a, Oli pondered and said...

    Meanwhile you can use ftp.

    I don't understand why webhost still offer (unencrypted) ftp-only
    access. Even if they don't want to give you shell access. There are
    restricted shells for ssh and sftp servers available.

    I have spent the day on and off trying to get access and still can't. It's jolly frustrating... partly because I am not sure I am even doing it
    right :)

    But I try and pass things like

    Permission denied, please try again.
    [email protected]'s password:

    If it's asking you for a password like this it doesn't use the public ssh key for authorization (maybe it's in the wrong location on the server or hasn't been installed correctly). You are either using a wrong password, a wrong username or don't have ssh access for that machine.

    ---
    * Origin: . (21:3/102)
  • From Avon@21:1/101 to Oli on Sunday, February 14, 2021 22:00:31
    On 14 Feb 2021 at 09:35a, Oli pondered and said...

    If it's asking you for a password like this it doesn't use the public
    ssh key for authorization (maybe it's in the wrong location on the
    server or hasn't been installed correctly). You are either using a wrong password, a wrong username or don't have ssh access for that machine.

    finally making some progress, tried a different login and got a connection... seeking some guidance from webhost as to what logins I can / can't use.

    Managed to 'put' a file on the web server using sftp

    scp has not liked the destination I have been trying to send a local file to and squawks about it being a directory...

    Bed time... phew, this has been a long day

    And my country looks to be moving alert levels because of a coivd scare
    too... was going to work in the office but now working from home tomorrow.

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Al@21:4/106.1 to Avon on Sunday, February 14, 2021 01:57:07
    Re: Re: Automating file transfers using FTP (or similar)
    By: Avon to Oli on Sun Feb 14 2021 10:00 pm

    scp has not liked the destination I have been trying to send a local file to and squawks about it being a directory...

    I don't have a remote destination currently to try this for real, but as I recall a command like this will do what you want..

    scp fsxnet.zip [email protected]:/directory/here

    scp will overwrite existing files if I remember right, so be careful with that.. you also need write permissions on the target directory.

    You may need the -P parameter if your host is on a port other than 22, -P port. If you need to enter a password when you ssh in, you'll be asked for the password, if you login doesn't need it you can script the above (assuming it works).

    Ttyl :-),
    Al

    ... Logic and practical information do not seem to apply here.
    --- SBBSecho 3.12-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From Vk3jed@21:1/109 to Avon on Sunday, February 14, 2021 21:22:00
    On 02-13-21 19:20, Avon wrote to All <=-

    How can I setup something that allows me to run an automated file
    transfer from my Linux system to my webhost? I'm trying to set things
    up so that copies of the nodelist etc. are sent there when updated on
    this new box.

    I started to look at scp and sftp but on Linux I am lost.

    scp will work. Trick is to use SSH keys, and not have a password on your key, then copying a file is as:

    scp localfilename user@host:/path/to/destfile

    You'll need to use ssh-keygen to generate the SSH key pairs. The private key (id_rsa) goes in your ~/.ssh (that's .ssh under your home directory), and the public key (id_rsa.pub) goes into .ssh/authorized_keys in the destination user's home directory.


    ... There are no answers, only cross-references!
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Al on Sunday, February 14, 2021 21:24:00
    On 02-13-21 00:25, Al wrote to Avon <=-

    I find the scp syntax is not intuitive but I have done this with a scp before. If I can help, let me know.

    I do this sort of thing with scp all the time. ;)


    ... Change is good; especially when it relates to underwear.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Avon on Sunday, February 14, 2021 21:32:00
    On 02-14-21 13:12, Avon wrote to Oli <=-

    scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]

    then the command seems to be accepted and I get a new linux command prompt.

    OK, there's no path information, so the file wasn't actually sent, it was just copied locally to a file called [email protected]

    The syntax you need is scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]:/path/to/destination

    I have no idea if the file has been sent or where it went.

    Usually no response is good, though you may have briefly seen a progress bar.

    ... You can tell a real programmer by the keyboard dents in his face.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Avon on Sunday, February 14, 2021 21:34:00
    On 02-14-21 13:24, Avon wrote to deon <=-

    On 14 Feb 2021 at 11:15a, deon pondered and said...

    If what you typed is above, then you effectively just "copied" the file test.txt to [email protected] (on the local system).

    ssh: connect to host bbs.nz port 22: Connection timed out
    lost connection

    is SSH enabled on the server, if so, what port?

    If SSH (sshd) is listening on another port, you'll need to add "-o port=nnnn" to the scp command line.


    ... Always drink upstream from the herd.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Avon on Sunday, February 14, 2021 21:36:00
    On 02-14-21 15:15, Avon wrote to deon <=-

    On 14 Feb 2021 at 11:30a, deon pondered and said...

    Yup, indiciating its firewalled out.

    On there end or do you think I need to run something on my end to open
    a port / check it's open?

    Their end. It's possible they are running a sshd on another port for users to upload.


    ... Help fight continental drift.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Avon on Sunday, February 14, 2021 21:40:00
    On 02-14-21 22:00, Avon wrote to Oli <=-

    And my country looks to be moving alert levels because of a coivd scare too... was going to work in the office but now working from home
    tomorrow.

    Hmm, you too? We're in the middle of a short (hopefully!) stage 4 lockdown because of an outbreak. So far, I think they've only found cases in contacts already isolated, but there's a number of significant exposure sites.


    ... Anyone that willingly runs Windows DESERVES what he gets.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Gamgee@21:2/138 to Vk3jed on Sunday, February 14, 2021 08:33:00
    Vk3jed wrote to Avon <=-

    On 02-14-21 13:12, Avon wrote to Oli <=-

    scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]

    then the command seems to be accepted and I get a new linux command prompt.

    OK, there's no path information, so the file wasn't actually
    sent, it was just copied locally to a file called [email protected]


    The syntax you need is scp -i /home/avon/.ssh/id_rsa testing.txt [email protected]:/path/to/destination

    I have no idea if the file has been sent or where it went.

    Usually no response is good, though you may have briefly seen a
    progress bar.

    I don't think there's any need for that "-i xxxxxxxx" clause, either.
    That appears to be the standard location that scp/ssh will look for the
    key, so it doesn't need to be mentioned. Just extra clutter.



    ... The worst thing about censorship is ##########.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.12-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138)
  • From Vk3jed@21:1/109 to Gamgee on Monday, February 15, 2021 15:14:00
    On 02-14-21 08:33, Gamgee wrote to Vk3jed <=-

    I don't think there's any need for that "-i xxxxxxxx" clause, either.
    That appears to be the standard location that scp/ssh will look for the key, so it doesn't need to be mentioned. Just extra clutter.

    Yes, it should pick up id_rsa from the default location (does for me). -i is more important when you have multiple SSH keys and want to use the right one for each link.


    ... Think like a man of action, act like a man of thought.
    === MultiMail/Win v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)