Hello,
I run remote commands on servers all the time, though we use sudo.
Sometimes ssh has issues and the commands works better with the -t option, try that.
I hope this helps.
Last edited by rbatte1; 03-05-2015 at 12:12 PM..
Reason: Changed ICODE tags to just CODE tags
In any given operating system, generally how much of AI software is involved? Is it related to user-friendliness of OS?
What is the future of strong AI? (3 Replies)
This may not be the right forum to put up a question like the one I'm about to ask. I am hoping that I would get very fruitful responses.
i) I have been learning UNIX for sometime now, but my question is realistically what do I need to be able to be able to apply for UNIX jobs.
What sort of... (6 Replies)
Hello, I want to know why initrd need swap for work. In the shell of mkinitrd, it look for the swap partation for "swsuspdev", then write a sentence "resume /dev/sdXX" in the file init from initrd.gz, and the /dev/sdXX is the swap partation.
Why initrd need swap when it boot a system? what is... (4 Replies)
Hi ,
I am planning for the interview . I am having one question here , I worked on unix and shellscripting for 2 years
Done-
Ø Coding and testing of Server Monitoring ShellScripts
Ø Deployment on UNIX production environment
I have written so many shellscripts for monitoring... (5 Replies)
Hello Guys,
I am studying RBAC. So I create a role called sysadm and gave it the "shutdown" profile.
Now when I switch to that role, and execute the shutdown command
$ shutdown -y -g0 -i5
The system responds with :
shutdown: not found
Can anyone help me with this please?... (1 Reply)
Hello,
We are planning to setup a Role based access and security to our Linux servers. We can use mostly use sudo for providing the limited access to service and files.
My query is that how can we manage that members can edit/access only specific files (it would be 1 or multiple files or... (3 Replies)
Discussion started by: sunnysthakur
3 Replies
LEARN ABOUT DEBIAN
config::model::openssh
Config::Model::OpenSsh(3pm) User Contributed Perl Documentation Config::Model::OpenSsh(3pm)NAME
Config::Model::OpenSsh - OpenSsh config editor
SYNOPSIS
invoke editor
The following will launch a graphical editor (if Config::Model::TkUI is installed):
sudo cme edit sshd
command line
This command will add a "Host Foo" section in "~/.ssh/config":
cme modify ssh Host:Foo ForwardX11=yes
programmatic
This code snippet will remove the "Host Foo" section added above:
use Config::Model ;
use Log::Log4perl qw(:easy) ;
my $model = Config::Model -> new ( ) ;
my $inst = $model->instance (root_class_name => 'Ssh');
$inst -> config_root ->load("Host~Foo") ;
$inst->write_back() ;
DESCRIPTION
This module provides a configuration editors (and models) for the configuration files of OpenSsh. ("/etc/ssh/sshd_config",
/etc/ssh/ssh_config and "~/.ssh/config").
This module can also be used to modify safely the content of these configuration files from a Perl programs.
Once this module is installed, you can edit "/etc/ssh/sshd_config" with run (as root) :
# cme edit sshd
To edit /etc/ssh/ssh_config, run (as root):
# cme edit ssh
To edit ~/.ssh/config, run as a normal user:
# cme edit ssh
user interfaces
As mentioned in cme, several user interfaces are available with "edit" subcommand:
o A graphical interface is proposed by default if Config::Model::TkUI is installed.
o A Curses interface with option "cme edit ssh -ui curses" if Config::Model::CursesUI is installed.
o A Shell like interface with option "cme edit ssh -ui shell".
AUTHOR
Dominique Dumont, (ddumont at cpan dot org)
SEE ALSO
cme, Config::Model,
perl v5.14.2 2012-10-29 Config::Model::OpenSsh(3pm)