[ask] SSH

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
gabscung

[ask] SSH

Post 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
Contact:

Post 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

Post 09 Dec 2012, 18:55

gk bisa yah klo kta settin pathnya!!?
User avatar
buzzing_bee
Contact:

Post 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

Post 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
Contact:

Post 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
Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 80 guests