From: Andrew Reid on
On Sunday 21 March 2010 18:52:36 Dotan Cohen wrote:
> I am managing a small embedded device that I SSH into over the LAN. To
> run commands, I use KDE Konsole, and to transfer files I use Konqueror
> and SFTP. I understand that SFTP also runs over SSH, so is there a way
> to send files in Konsole as well? I am familiar with the FTP commands
> such as cd, lcd, put, and get. Are there equivalent commands for SSH
> terminal connections?

As others have commented, you can use scp or sftp.

However, I can imagine that embedded might not have the
sftp service or the scp executable.

If that's your case, you can always do:

# cat file | ssh remote 'cat > destinaton'

i.e. pipe the file through a simple SSH invocation
of "cat" on the remote system.

-- A.
--
Andrew Reid / reidac(a)bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/201003212314.32985.reidac(a)bellatlantic.net
From: Andrew Reid on
On Sunday 21 March 2010 23:14:32 Andrew Reid wrote:
> On Sunday 21 March 2010 18:52:36 Dotan Cohen wrote:
> > I am managing a small embedded device that I SSH into over the LAN. To
> > run commands, I use KDE Konsole, and to transfer files I use Konqueror
> > and SFTP. I understand that SFTP also runs over SSH, so is there a way
> > to send files in Konsole as well? I am familiar with the FTP commands
> > such as cd, lcd, put, and get. Are there equivalent commands for SSH
> > terminal connections?
>
> As others have commented, you can use scp or sftp.
>
> However, I can imagine that embedded might not have the
> sftp service or the scp executable.
>
> If that's your case, you can always do:
>
> # cat file | ssh remote 'cat > destinaton'

Pardon my replying to myself, but I've now seen a bunch of the
rest of the thread, and it seems to me that, if the set of commands
you want to do is repeatable, then maybe what you want is to do
most of the remote-system operations through SSH commands this way?

Someone else may have already suggested this, but something
like:

# cat file.tgz | ssh remote 'cat > dest.tgz' (or scp, if available)
# ssh remote 'tar -xf dest.tgz'
# ssh remote 'sh dest/installer' (or whatever)
# ssh remote 'cat dest/install-log' > remote-install-log (or whatever)

This way, you still only have the one shell, and/but you
pay the price in having to prefix all the remote operations
with "ssh remote". However, you could script this on the
local system (which is, I think, why you want a single
session, right, so you can script it?), and then the extra
typing doesn't really cost you much.

-- A.
--
Andrew Reid / reidac(a)bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/201003212325.49742.reidac(a)bellatlantic.net
From: Paul E Condon on
On 20100322_010210, Dotan Cohen wrote:
> On 22 March 2010 00:57, Selçuk Mıynat <selcukmiynat(a)gmail.com> wrote:
> > On Mon, Mar 22, 2010 at 00:52, Dotan Cohen <dotancohen(a)gmail.com> wrote:
> >> I am managing a small embedded device that I SSH into over the LAN. To
> >> run commands, I use KDE Konsole, and to transfer files I use Konqueror
> >> and SFTP. I understand that SFTP also runs over SSH, so is there a way
> >> to send files in Konsole as well? I am familiar with the FTP commands
> >> such as cd, lcd, put, and get. Are there equivalent commands for SSH
> >> terminal connections?
> >
> > Are you looking for scp?
> >
> > http://en.wikipedia.org/wiki/Secure_copy
> > http://www.helpdesk.umd.edu/documents/4/4801/
> >
>
> No, scp is for sending files to a remote machine that the user has yet
> to connect to:
> localhost$ scp /path/to/file.txt user(a)remoteMachine /remote/path/
>
> However, I want something like this:
> localhost$ ls
> file.txt
> localhost$ ssh user(a)remoteMachine
> remoteMachine$ ls
> remoteMachine$ put file.txt
> remoteMachine$ ls
> file.txt
> remoteMachine$
>
> Of course, that "put" command does not exist in SSH (it does exist in
> FTP). What _does_ work like that in SSH?

Dotan,

You are getting many responses, so perhaps this idea has already been
rejected, however --- I use ssh AND sshfs. I get shell access to the
remote machine with ssh and for file access I mount the portion of the
remote fs that a want on a local mount point. I know there are a lot
of machinations going on under the covers, but it does work. Put the
mount point in your home directory. If you can ssh to root on the remote,
you can also get root access to the remote file system.

It works for me.

--
Paul E Condon
pecondon(a)mesanetworks.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100322043118.GA29954(a)big.lan.gnu
From: Clive McBarton on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dotan Cohen wrote:
> I can have as many open connections as I want, it's on the LAN. But I
> would _prefer_ just one terminal window for both commands (SSH) and
> file transfers.

First of all, I believe the ssh protocol (not necessarily the ssh
program) already support exactly what you want: logging in and, if you
want, sending files through the already opened tunnel.

PuTTY does exactly that. If you are logged in, you can press a button to
open a (local) file browser for the remote files. Without new password
entering. So I guess it uses the same tunnel.

So here's your first solution: use putty. It exists for Linux also.

Second solution: if the ssh protocol supports what you want but the ssh
program does not, then complain to whoever maintains ssh (program) to
include that option. For example, a hotkey to switch it into sftp mode
in the already open connection.

More solutions (sshfs, or just giving up and typing several commands)
have already been posted here.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkum91QACgkQ+VSRxYk440+4pQCgtPJZ02AUmIcZ7cEN/kUL1BHe
V64AnRtd2VkXPx4N3XDKLM2U2T5PogI4
=7xt3
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BA6F755.4030707(a)web.de
From: Dotan Cohen on
> You are getting many responses, so perhaps this idea has already been
> rejected, however --- I use ssh AND sshfs. I get shell access to the
> remote machine with ssh and for file access I mount the portion of the
> remote fs that a want on a local mount point. I know there are a lot
> of machinations going on under the covers, but it does work. Put the
> mount point in your home directory. If you can ssh to root on the remote,
> you can also get root access to the remote file system.
>
> It works for me.
>

Yes, Paul, and it what I am currently doing. However, I want to have
it all in one window and have the pwds in sync.

--
Dotan Cohen

http://bido.com
http://what-is-what.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/880dece01003220153t4136ca99qebe3b796707a3213(a)mail.gmail.com
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9
Prev: Not able to change password with passwd
Next: which kernel