• Automating file transfers using FTP (or similar)

    From Avon@21:1/101 to All on Sat Feb 13 19:20:29 2021
    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://user@domain.com:password@domain.com -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 Sat Feb 13 17:35:08 2021
    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 Sat Feb 13 19:54:26 2021
    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 Sat Feb 13 09:21:48 2021
    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 Sat Feb 13 00:25:35 2021
    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 Sat Feb 13 21:19:31 2021
    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 Sat Feb 13 06:28:11 2021
    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 Sun Feb 14 09:11:50 2021

    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 Sat Feb 13 21:56:14 2021
    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 Sun Feb 14 13:12:06 2021
    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 user@domain.com

    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 Sun Feb 14 11:15:28 2021
    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 user@domain.com

    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 user@domain.com (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 Sun Feb 14 13:24:04 2021
    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 user@domain.com (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 Sun Feb 14 13:24:59 2021
    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 user@domain.com (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 Sun Feb 14 13:27:23 2021
    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 Sun Feb 14 11:27:53 2021
    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 Sun Feb 14 11:30:32 2021
    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 Sat Feb 13 20:20:50 2021
    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" pi@10.0.0.5:/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 Sun Feb 14 15:15:39 2021
    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 Sun Feb 14 15:16:51 2021
    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 Sun Feb 14 15:31:40 2021
    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 Sun Feb 14 17:49:52 2021
    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 Sun Feb 14 08:51:33 2021
    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 Sun Feb 14 20:58:25 2021
    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.
    ken@bbs.nz's password:
    avon@orac:~$ sftp -i /home/avon/.ssh/id_rsa sftp://ken@ftp.bbs.nz ken@ftp.bbs.nz's password:
    Permission denied, please try again.
    ken@ftp.bbs.nz's password:
    Permission denied, please try again.
    ken@ftp.bbs.nz's password:
    avon@orac:~$ sftp ken@bbs.nz
    ken@bbs.nz's password:
    Permission denied, please try again.
    ken@bbs.nz's password:
    Permission denied, please try again.
    ken@bbs.nz's password:
    ken@bbs.nz: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
    Connection closed.
    Connection closed
    avon@orac:~$ sftp -i /home/avon/.ssh/id_rsa ken@bbs.nz
    ken@bbs.nz's password:
    Permission denied, please try again.
    ken@bbs.nz's password:
    Permission denied, please try again.
    ken@bbs.nz's password:
    ken@bbs.nz: 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 Sun Feb 14 08:58:19 2021
    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 Sun Feb 14 09:35:20 2021
    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.
    ken@bbs.nz'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 Sun Feb 14 22:00:31 2021
    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 Sun Feb 14 01:57:07 2021
    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 username@some.where.com:/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 Sun Feb 14 21:22:00 2021
    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 Sun Feb 14 21:24:00 2021
    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 Sun Feb 14 21:32:00 2021
    On 02-14-21 13:12, Avon wrote to Oli <=-

    scp -i /home/avon/.ssh/id_rsa testing.txt user@domain.com

    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 user@domain.com

    The syntax you need is scp -i /home/avon/.ssh/id_rsa testing.txt user@domain.com:/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 Sun Feb 14 21:34:00 2021
    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 user@domain.com (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 Sun Feb 14 21:36:00 2021
    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 Sun Feb 14 21:40:00 2021
    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 Sun Feb 14 08:33:00 2021
    Vk3jed wrote to Avon <=-

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

    scp -i /home/avon/.ssh/id_rsa testing.txt user@domain.com

    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 user@domain.com


    The syntax you need is scp -i /home/avon/.ssh/id_rsa testing.txt user@domain.com:/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 Mon Feb 15 15:14:00 2021
    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)