由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - ssh question on linux
相关主题
linux如何批量替换电话面试题一问 (转载)
How to write a VB Macro to convert text to hyperlink in Excel请教:记录访问者IP时,发生的奇怪问题!
cgi测试newbee问题A weird C programming language--Return a pointer to array
XSL questionC++的库
How to avoid getting "has encountered a problem and needs to close" window准备在我的网站上发片文章
i +++ jtimer(linux/g++)?
[合集] Effecive c++ 真那么好? (转载)谢谢大家!One More Question! Re: C 程序计算结果
VC 6 有时死机问题[转载] Is there any tools in Linux to watch mem
相关话题的讨论汇总
话题: linux话题: ssh话题: abc话题: tried
进入Programming版参与讨论
1 (共1页)
e**********n
发帖数: 359
1
Tried the following script on linux and mac:
export ABC="ssh -o \"pubkeyAuthentication yes\" -i id_rsa myname@myserver"
$ABC
on linux, I always got an error "command-line: line 0: Bad configuration
option", but on mac, it seems OK.
Anyone has encountered the same problem on linux?
Thanks a lot!
D*********s
发帖数: 555
2
which means under linux, ssh client doesn't support that configuration
option

【在 e**********n 的大作中提到】
: Tried the following script on linux and mac:
: export ABC="ssh -o \"pubkeyAuthentication yes\" -i id_rsa myname@myserver"
: $ABC
: on linux, I always got an error "command-line: line 0: Bad configuration
: option", but on mac, it seems OK.
: Anyone has encountered the same problem on linux?
: Thanks a lot!

O******e
发帖数: 734
3
On Linux try
ssh -o PubkeyAuthentication=yes

【在 e**********n 的大作中提到】
: Tried the following script on linux and mac:
: export ABC="ssh -o \"pubkeyAuthentication yes\" -i id_rsa myname@myserver"
: $ABC
: on linux, I always got an error "command-line: line 0: Bad configuration
: option", but on mac, it seems OK.
: Anyone has encountered the same problem on linux?
: Thanks a lot!

e**********n
发帖数: 359
4
The problem is that I tried
ssh -o "pubkeyAuthentication yes" ...
first, and it worked.
So what's wrong with the variable substitution?

【在 D*********s 的大作中提到】
: which means under linux, ssh client doesn't support that configuration
: option

o*o
发帖数: 404
5
I think you mean alias here.

【在 e**********n 的大作中提到】
: The problem is that I tried
: ssh -o "pubkeyAuthentication yes" ...
: first, and it worked.
: So what's wrong with the variable substitution?

O******e
发帖数: 734
6
This works for me on Linux:
#!/bin/bash
export ABC="ssh -o PubkeyAuthentication=yes -i $HOME/.ssh/id_dsa user@host"
exec $ABC

【在 e**********n 的大作中提到】
: The problem is that I tried
: ssh -o "pubkeyAuthentication yes" ...
: first, and it worked.
: So what's wrong with the variable substitution?

1 (共1页)
进入Programming版参与讨论
相关主题
[转载] Is there any tools in Linux to watch memHow to avoid getting "has encountered a problem and needs to close" window
isinf 问题i +++ j
请问有哪些high performance TCP statck on LINUX?[合集] Effecive c++ 真那么好? (转载)
为什么大部分C or C++都在linux下做?VC 6 有时死机问题
linux如何批量替换电话面试题一问 (转载)
How to write a VB Macro to convert text to hyperlink in Excel请教:记录访问者IP时,发生的奇怪问题!
cgi测试newbee问题A weird C programming language--Return a pointer to array
XSL questionC++的库
相关话题的讨论汇总
话题: linux话题: ssh话题: abc话题: tried