Posted
Filed under Computer/package
support MAC OSX 10.8


$ kssh -h

kssh [<option>] [<id1>@<host1> [<id2>@<host2>] ] <id>@<dest host>

 -t     : make a tunnel
 -k     : kill connection
 -l     : show connection list
 -lc    : show configuration list (it need kssh.cfg file)
 -v     : show version

* scp
kssh [<option>] <src> <id>@<dest host>:
kssh [<option>] <id>@<dest host>:<src> .
 -r     : scp's directory copy option

* ssh
kssh <id>@<dest host> [<cmd> <cmd's option>]

kssh.cfg format
-----------------------------------------------------------
# ~~~ : comment
# single host
<name1>=<old format>=<id1>@<host1>= =<dest node>
# dual host
<name1>=<old format>=<id1>@<host1>=<id2>@<host2>=<dest node>
....
-----------------------------------------------------------


Install
1. extract kssh.1.2.19.tgz to your bin directory
2. make a kssh.cfg file in same kssh file's path.
3. vi kssh.cfg
# single host for tunnel
dest1= =kage@test1= =dest1
# dual host for tunnel
dest2= =kage@test1=kage@test2=dest2

* show list
kssh -lc

* first time connect to dest1
kssh root@dest1
<enter kage@test1's password>
<press key "control + ad" for exit screen mode>
<enter root@dest1's password>
 
* second time connect to dest1 ( after got a tunnel )
kssh root@dest1
<enter root@dest1's password>


2013/02/09 07:39 2013/02/09 07:39
[로그인][오픈아이디란?]
Posted
Filed under Computer/package
detail information :
http://www.cep.kr/blog/cep/193

upgraded many function.
So, I is working on single shell file.
almost same function.
but it is working without kssh.cfg file.
also, with kssh.cfg file.

"-r" option is directory copy.


$ kssh -h

kssh [<option>] [<id1>@<host1> [<id2>@<host2>] ] <id>@<dest host>

 -t     : make a tunnel
 -k     : kill connection
 -l     : show connection list
 -lc    : show configuration list (it need kssh.cfg file)
 -v     : show version

* scp
kssh [<option>] <src> <id>@<dest host>:
kssh [<option>] <id>@<dest host>:<src> .
 -r     : scp's directory copy option

* ssh
kssh <id>@<dest host> [<cmd> <cmd's option>]

kssh.cfg format
-----------------------------------------------------------
# ~~~ : comment
<name1>=<old format>=<id1>@<host1>=<id2>@<host2>=<dest node>
....
-----------------------------------------------------------
2012/10/26 08:20 2012/10/26 08:20
[로그인][오픈아이디란?]
Posted
Filed under Computer/package
detail information :
http://www.cep.kr/blog/cep/193

function upgrade and fix a bug.

I did fix a minor bug from 0.7.7.

I did add few function to kssh. (0.7.12)

You can download kssh.tunnel & sample kssh.cfg file from http://www.cep.kr/blog/cep/193 or http://www.cep.kr/blog/cep/268


"-r" option is directory copy.


$ kssh -h

usage)
scp(put) : kssh [ -r ] id@<hostname|tunnel name>:<src dir/file> <target dir>
                kssh [ -r ] <hostname|tunnel name>:<src dir/file> <target dir>

scp(get) : kssh [ -r ] <src dir/file> id@<hostname|tunnel name>:<target dir>
                kssh [ -r ] <src dir/file> <hostname|tunnel name>:<target dir>

ssh         : kssh id@<hostname|tunnel name> [<command> <cmd options>]
                kssh <hostname|tunnel name> [<command> <cmd options>]

version   : kssh -v
help       : kssh [ -h ]

configure file: kssh.cfg

hostname list)
svn
backup



2011/09/17 04:01 2011/09/17 04:01
[로그인][오픈아이디란?]
Posted
Filed under Computer/package

kssh는 ssh tunnel과 ssh, scp 프로그램을 쉽게 쓰게 만든 스크립트로 초기 버전이다.
이 스크립트는 ssh tunnel을 1개 또는 2개서버까지 하게 해준다.

자세한 내용은 http://www.cep.kr/blog/cep/193 글을 참조 하면 되고 여기에서는 업그래이드 된 내용을 간단히 설명한다.

파일 구성 :
 kssh
 kssh.tunnel
 kssh.cfg

사용법은 scp나 ssh와 같음.
옵션은 조금 다르지만 일반적인 사용법은 같음.

copy remote file to local
kssh <id>@<remote host>:<some where>/<filename>  .

copy local to remote node
kssh  <filename> <id>@<remote host>:<some where>

login to remote node
kssh <id>@<remote host>

만약에 한노드 또는 두노드 까지 ssh tunnel을 통해 jump하고 싶다면 kssh.cfg 파일에 정의를 내려주면 내려져 있는 정의에 맞춰 ssh tunnel을만들어 주고 다음부터는 kssh를 이용하면 jump해서 바로 목적 노드에 로그인이 된다.

사용법은 위의 똑같다. 단지 kssh.cfg에 정의를 내려야만 한다.

간혹 tunnel은 열려 있지마 접속이 안될경우가 있다.
그런경우에는 /etc/ssh/ssh_config 에서 ssh key를 저장하지 않고(무시하고) 사용하게 옵션을 바꾸거나 ~/.ssh/known_hosts 파일에서 localhost로 시작하는 라인을 삭제해주면 된다.

ssh tunnel을 이용할경우에는 모든 target host가 localhost로 ~/.ssh/known_hosts에 등록된다. 그래서 다른 목적 host로 접속하려해도 계속 hostname이 같지만 ssh key가 틀려서 접속이 안될수도 있다.


2011/05/20 03:11 2011/05/20 03:11
[로그인][오픈아이디란?]
Posted
Filed under Computer/package
이것은 간단한 계산기로 +-*/와 몇승을 나타내는 ^ 그리고 괄호 ()를 지원하는 간단한 계산기로 GUI가 없는 linux based command line 계산기이다.

아무것도 않넣으면 예제가 뜬다.

./Kcal
ex) ./Kcal "1-2+1*(3(2*2^3)+1*4)^2-5*2/10"

아직 잘못된 계산식에 대해 Error 표현하는 기능은 들어 있지 않지만 간단하게 산술적인 계산에 대해서는 잘 되는것 같다.

() () 사이에 *를 넣지 않아도 () () 는 ()*()로 인식하고 2(3+4)는 2*(3+4)로 자동 인식한다.

그러므로 우리가 일반적으로 쉽게 생각하는 방식의 계산을 손쉽게 할수 있어 편리하다.

만약에 음수를 넣고 싶으면 (-2) 이렇게 ()로 쌓아주면 된다.

일반적인 linux 에서는 돌아갈것 같다

예제)

주급 계산 :
   연봉        : 10000원
   주급 단위 : 2주
   주급은 =  (10000/52)*2
   ./Kcal "(10000/52)*2"
   

할부 계산 :
   빌린 금액 : 10000원
   기간        : 2년
   Ratio       : 3.9%
   값을 금액 = 10000 + (10000*(3.9/100))
   매월 금액 = (10000 + (10000*(3.9/100)))/(2*12)
   ./Kcal "(10000 + (10000*(3.9/100)))/(2*12)"



.
2010/12/15 08:27 2010/12/15 08:27
[로그인][오픈아이디란?]