[ask] SSH

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
gabscung
Posts: 22
Joined: 13 Jan 2011, 05:09

[ask] SSH

Postby gabscung » 09 Dec 2012, 10:39

agan2 sekalian, mau tanya. biasanya klo kita mw login ssh.
ex: ssh root@10.4.73.70 maka dy akan masuk k folder root. misal kita ingin ketika remote langsung masuk k folder Download gmana caranya dan dmana settingnya yah!!??
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [ask] SSH

Postby q_p » 09 Dec 2012, 15:27

Kayaknya kok tidak bisa ya. Kecuali ada username 'Download' dan anda masuk dengan username 'Download'

Code: Select all

$ssh -p 22 Download@10.4.73.70
CMIIW.
User avatar
gabscung
Posts: 22
Joined: 13 Jan 2011, 05:09

Re: [ask] SSH

Postby gabscung » 09 Dec 2012, 18:55

gk bisa yah klo kta settin pathnya!!?
User avatar
buzzing_bee
Posts: 1971
Joined: 29 Dec 2010, 21:53
Location: /home/buzzing_bee
Contact:

Re: [ask] SSH

Postby buzzing_bee » 09 Dec 2012, 19:15

coba ini:

Code: Select all

ssh -t root@10.4.73.70 "cd /path_to_Download_folder ; bash"
User avatar
gabscung
Posts: 22
Joined: 13 Jan 2011, 05:09

Re: [ask] SSH

Postby gabscung » 09 Dec 2012, 22:57

buzzing_bee wrote:coba ini:

Code: Select all

ssh -t root@10.4.73.70 "cd /path_to_Download_folder ; bash"
bsa gk klo pathnya d simpen settingannya. jd pass running ssh cuma ngetik ssh root@10.4.73.70, klo bsa d sett dmana yh agann2!!
User avatar
buzzing_bee
Posts: 1971
Joined: 29 Dec 2010, 21:53
Location: /home/buzzing_bee
Contact:

Re: [ask] SSH

Postby buzzing_bee » 09 Dec 2012, 23:53

bikin alias aja di .bashrc

Code: Select all

alias remote='ssh -t root@10.4.73.70 "cd /path_to_Download_folder ; bash"'


jadi ntar kalo mau ssh, tinggal ketik "remote" (tanpa kutip), trus enter.

CMIIW

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests