SSH w/terminal remotely uzip untar or unstuff and archive

Barrett

Registered
Goal is to login in to remote server
Navigate to desired directory
Select desired .ZIP .SIT or .TGZ (tar) archive.
Expand it.
Delete it.

I get as far as opening up terminal

ssh user_name@domain
entering password
I then get
user_name@hd1:~#

Oh wooppeee now what ?????????

After someone helps me figure out how to do this the long hard cryptic terminal way; is there not a slick OS X gui for completing what should be as simple as using one of the FTP clients out there ?

Thanks,
Barrett
 
You want to do this via a script or at the command line, interactively?

You'll want to login :

ssh username@machine_name
enter password
cd /your/dir/tree
### do stuff here

It seems the problem is, in your example, you're validating the username to the domain, but not "landing" on a machine/selected dir tree.

If your machine(s) is configured correctly and you need domain authentication, then logging in a given machine *should* authenticate to the domain.
 
You can even do it without having to enter an interactive shell:

ssh user@host "cd /path/to/file ; tar xv(z)f filename.tar(.gz)"
 
Back
Top