09-11-2012
It might be missing from the PATH, running it directly may prevent it doing an actual shell login and getting your usual shell variabies. something like ssh username@host . /etc/profile ';' mycommand could rectify that
10 More Discussions You Might Find Interesting
1. AIX
As the title says, I'm unable to ssh out of boxA to other nodes on the network. I am running 5.2 ML6. The version of ssh client is:
openssh.base.client 4.1.0.5301 COMMITTED Open Secure Shell Commands
The program installed okay with no errors.
When I try to ssh to another node on... (6 Replies)
Discussion started by: outtacontrol
6 Replies
2. HP-UX
Hello!!
I have an HP-UX 11.23 box. I downloaded an SSH depot file form HP website.
Using SAM, I tried to install the depot file. However, SAM declared "it cannot find any compatible depot file to install".
Due to that, I tried using command line 'swinstall' just like HP tutorial taught me.... (8 Replies)
Discussion started by: jembalang
8 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have automated logins to Unix boxes with Ssh - Putty combination.
Have created a Pub - Pvt key combination for the same.
Added the entry of username in "User name" box of Putty.
This works perfectly for the specified user.
I want this to happen now for another user as well, without... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies
4. Shell Programming and Scripting
How would I write an expect script to automate ssh and what file extention do expect files use? (11 Replies)
Discussion started by: Prodiga1
11 Replies
5. AIX
Hiya,
I want to automate ssh between two servers (Server A and Server B) and currently facing two problems.
I am able to automate ssh between same SSH versions but unable to do so for following conditions.
1. SSH versions are different on Server A and Server B.
2. Username is different on... (1 Reply)
Discussion started by: kamitsin
1 Replies
6. Shell Programming and Scripting
Hi Guys!
I am trying to write a shell script for automated ssh. vairable user and passwd have initialized correctly, but when I use the following it still prompting me for the password.
#!/usr/bin/bash
user='root@10.14.76.225'
passwd='admin'
ssh $user
$passwd
uptime
exit
I... (3 Replies)
Discussion started by: pinpe
3 Replies
7. HP-UX
Hi,
I'm trying to connect from an HP-UX with SSH2 client(ssh2 3.1.2 on hppa1.1-hp-hpux11.00) to an SSH2 server on a VxWorks system. The SSH connection is failing with the below connection logs:
> /usr/local/bin/ssh2 -v -l testuser 10.10.10.10
debug: Ssh2/ssh2.c:1391: Using file... (4 Replies)
Discussion started by: ysafi
4 Replies
8. Shell Programming and Scripting
i have to connect windows server from one of the unix box so i am using telnet and below is my following code
#!/bin/sh
host=hostname
log=loginid
port=23
pass=password
cmd1=mkdir test1234
( echo open ${host} ${port}
sleep 1
echo ${log}
sleep 3
echo "\r\n"
sleep 3
echo ${pass}... (11 Replies)
Discussion started by: chandan.p
11 Replies
9. Shell Programming and Scripting
Hello everyone.
I'm a Linux novice trying out a lot of bash scripting lately, as it is so very addictive.
Lately I have been setting up one of my boxes remotely and have been hardening it as much as possible. Please allow me to explain the scenario, as it does tend to become a little... (1 Reply)
Discussion started by: instro
1 Replies
10. Shell Programming and Scripting
I know there's an echo 1 liner command that will do a new line for me, I think same with fdisk too. Dont want to press "enter,enter,enter" just to finish the ssh-keygen -t rsa. Hope you understand what i mean here.
Thanks
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter... (1 Reply)
Discussion started by: invinzin21
1 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)