- Community Home
- >
- Networking
- >
- IMC
- >
- Re: IMC + TAM, not being able to SFTP into switche...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 12:06 AM
01-30-2014 12:06 AM
Hi,
We've implemented the TAM module for IMC and use a hwtacacs scheme to login to our switches.
Before that, I used to grab the configs of every switch with a bash script on a linux server with pscp (with sftp).
After the implementation of TAM, I am not able to SFTP into the switches anymore. I can SSH into the switches without any problems, but somehow it seems like the user is not allowed to start a SFTP shell.
In TAM I have given the user the highest privilege level, etc. No command restrictions.
Can anyone help me?
Kind regards,
Chris van Meer
Solved! Go to Solution.
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 05:56 AM
01-30-2014 05:56 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
That is certainly possible, if you did not assign the correct "command sets" to the "authorization policy". Best way to check is to look at your audit logs and see if TAM is denying any access.
You can also check the TAM logs in $IMC_INSTALL_DIR\tam\log
Aaron Paxson
@Neelixx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 06:08 AM
01-30-2014 06:08 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
Any other suggestions maybe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 06:10 AM
01-30-2014 06:10 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup password
debug3: remaining preferred: ,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
<user> password:
debug3: packet_send2: adding 48 (len 62 padlen 18 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to <device>:22).
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: fd 3 setting TCP_NODELAY
debug1: Sending environment.
debug3: Ignored env TERM
debug3: Ignored env SHELL
debug3: Ignored env SSH_CLIENT
debug3: Ignored env SSH_TTY
debug3: Ignored env USER
debug3: Ignored env LS_COLORS
debug3: Ignored env MAIL
debug3: Ignored env PATH
debug3: Ignored env PWD
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env SHLVL
debug3: Ignored env HOME
debug3: Ignored env LANGUAGE
debug3: Ignored env LOGNAME
debug3: Ignored env SSH_CONNECTION
debug3: Ignored env LESSOPEN
debug3: Ignored env LESSCLOSE
debug3: Ignored env OLDPWD
debug3: Ignored env _
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 131072 rmax 32496
debug2: channel_input_status_confirm: type 100 id 0
subsystem request failed on channel 0
Connection closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 07:11 AM
01-30-2014 07:11 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
If you can't find any logs on TAM, then that is probably not your issue. Specifically the entry:
"subsystem request failed on channel 0" is probably what you need to focus on. An initial search found this. I hope it helps.
Aaron Paxson
@Neelixx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 07:17 AM
01-30-2014 07:17 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
Thank you for your reply, the strange thing is...on the same linux server, I can connect to other switches, that aren't registered with TAM, even the same switch models / software versions, without any problems. I also tried to sftp from a windows client, same result.
So ergo, I would think this would have to do something with TAM, but maybe I'm tunnel visioned :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 07:19 AM
01-30-2014 07:19 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
You are right. The circumstances need to be taken into account. However, could it be possible that the configuration of the device (when changing to TAM) could have affected the operation? I'm a bit out of my league, since I'm not familiar enough with HP network gear.
Aaron Paxson
@Neelixx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 11:00 AM
01-30-2014 11:00 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
Also, if you've got IMC, why not use that to do the backups, rather than your own script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 08:50 PM
01-30-2014 08:50 PM
Re: IMC + TAM, not being able to SFTP into switches anymore
The IMC backups for that switch fails as well.
My script backups a lot more than is present in IMC, that's why :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 10:16 PM
01-30-2014 10:16 PM
Re: IMC + TAM, not being able to SFTP into switches anymore
Hmm. Must be something to do with the service-type. I'd need to set up some a lab to dig deeper though.
If the file transfer mode in IMC is set to something OTHER than SFTP, it should work, as it will fall back to using SSH + display commands. But that doesn't help with making it work with sftp.
Wonder if there's some debugs you can run on the switch itself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 10:19 PM
01-30-2014 10:19 PM
Re: IMC + TAM, not being able to SFTP into switches anymore
Hmm, I have to be careful with that, because it is a production switch.
What kind of debugging do you have in mind?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2014 07:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2014 11:51 AM
02-03-2014 11:51 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
Ah, I thought that was just for regular FTP.
Did you find that documented somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2014 11:53 AM
02-03-2014 11:53 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
What should be concerning is that the audit log didn't show that access being denied. At least, to me it should. I'd want to know if someone is doing something they shouldn't be doing.
Aaron Paxson
@Neelixx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2014 12:34 AM
02-04-2014 12:34 AM
Re: IMC + TAM, not being able to SFTP into switches anymore
@Lindsay, I got that information from an HP engineer. Not sure if there are other custom attributes that would come in handy...
@Aaron, that is strange indeed.