SSH: don't specify a user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SSH: don't specify a user
# 1  
Old 11-09-2011
SSH: don't specify a user

How can I tell ssh to ask for the username at the prompt instead of passing one in via the
Code:
-l

parameter or
Code:
$username@$server

on the command line?

I know that when I connect to an ssh server via putty, if I don't specify a username when connecting, the ssh server will ask for the username. I'm looking for the same functionality from the ssh binary on a Solaris 10 box.
# 2  
Old 11-09-2011
You will have to write an ssh wrapper that will do that for you.

ssh -l username hostname
or
ssh username@hostname

is all that ssh on Solaris supports AFAIK. It is a security feature.

We do that with ftp, by creating an alias that points to an ftp driver script. Our requirements for ftp are different, but the idea is the same. Of course it does not work if someone uses /usr/bin/ftp, but that is 11 characters vs 3 characters. 3 wins. If the user even knows about it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Passwordless ssh for different user

Hello Folks, I lost touch in ssh key gen topics. I am in need of ssh to a server without password, kindly help me in configuring. I have two servers, server1 with user name apha & server1 with user name beta. I need to ssh to the server2 from server1 with respective users, Manually i... (3 Replies)
Discussion started by: Thala
3 Replies

2. HP-UX

Restrict ssh for particular user

Dear Concern, We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise. # uname -a HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license (2 Replies)
Discussion started by: makauser
2 Replies

3. IP Networking

Default User with SSH?

Hello All, Hopefully I'm in the correct forum for this one... I just had a pretty simple question about SSH. When I ssh to a server normally I do "ssh user@ip_address". I noticed once by accident I forgot to enter the username when I was entering the command and it still attempted to... (5 Replies)
Discussion started by: mrm5102
5 Replies

4. AIX

passwordless entry using ssh from one user to a different user on the same server

Hi, We have a requirement to do passwordless entry from one user to a different user on the same AIX server using ssh keys. Can some one help me with this? Thanks in advance, Panditt (3 Replies)
Discussion started by: deshaipet
3 Replies

5. Red Hat

Cannot ssh for a user

This is the entry when I tail /var/log/secure when I ssh for user "nightly"... Aug 4 03:19:48 itanium2 sshd: Illegal user nightly from ::ffff:10.91.220.35 Aug 4 03:20:10 itanium2 sshd: Failed password for illegal user nightly from ::ffff:10.91.220.35 port 32862 ssh2 What could be... (3 Replies)
Discussion started by: kirtikjr
3 Replies

6. Shell Programming and Scripting

Command for SSH with @ in User Name

I am trying to log into a server using SSH through the command line. I understand that the format is sftp -oPort=22 Username@Hostname. My issue is that my user name also has an @ symbol in it. Can someone tell me how I can get the system to not think that the last half of the user name as part... (9 Replies)
Discussion started by: davkatjenn
9 Replies

7. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies

8. UNIX for Dummies Questions & Answers

Possible to track FTP user last login? Last and Finger don't track them.

Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in. Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
Login or Register to Ask a Question