[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh спросил имя пользователя



Дамир Хакимов ☫ → To debian-russian@lists.debian.org @ Tue, Nov 22, 2011 08:46 +0400

> Добрый день.
> Вопрос: как сделать чтобы ssh спросил имя пользователя, а не
> подставлял имя текущего?
> Именно спросил, интерактивно, как это происходит при логине через putty.
> Надо.

Например, так:

~/bin/my-ssh:

#!/bin/bash
#
# Usage: $(basename $0) hostname

echo -n "Username: "
read user
ssh ${user}@$@

-- 
Bright regards, Sergey Korobitsin,
Chief Research Officer
Arta Software, http://arta.kz/
xmpp:undertaker@jabber.arta.kz

--
Information on Derby's internals is scattered over a number of locations:

  1. The code, describes exactly how it works. B)

  -- http://wiki.apache.org/db-derby/HowItWorks


Reply to: